<p>I have built a structure for a microservice app. auth is the first Dockerfile I have made and as far as I can tell is not building.</p>
<pre><code>C:\Users\geeks\Desktop\NorthernHerpGeckoSales\NorthernHerpGeckoSales\auth&gt;docker build -t giantgecko/auth .
[+] Building 0.1s (9/9) FINISHED
 =&gt; [internal] load build definition from Dockerfile                                                                                                                                                                                    0.0s
 =&gt; =&gt; transferring dockerfile: 206B                                                                                                                                                                                                    0.0s
 =&gt; [internal] load .dockerignore                                                                                                                                                                                                       0.0s
 =&gt; =&gt; transferring context: 53B                                                                                                                                                                                                        0.0s
 =&gt; [internal] load metadata for docker.io/library/node:alpine                                                                                                                                                                          0.0s
 =&gt; [1/5] FROM docker.io/library/node:alpine                                                                                                                                                                                            0.0s
 =&gt; [internal] load build context                                                                                                                                                                                                       0.0s
 =&gt; =&gt; transferring context: 479B                                                                                                                                                                                                       0.0s
 =&gt; [2/5] WORKDIR /app                                                                                                                                                                                                                  0.0s
 =&gt; CACHED [3/5] COPY package.json .                                                                                                                                                                                                    0.0s
 =&gt; CACHED [4/5] RUN npm install                                                                                                                                                                                                        0.0s
 =&gt; ERROR [5/5] COPY /Users/geeks/Desktop/NorthernHerpGeckoSales/NorthernHerpGeckoSales/auth .                                                                                                                                          0.0s
------
 &gt; [5/5] COPY /Users/geeks/Desktop/NorthernHerpGeckoSales/NorthernHerpGeckoSales/auth .:
------
failed to compute cache key: &quot;/Users/geeks/Desktop/NorthernHerpGeckoSales/NorthernHerpGeckoSales/auth&quot; not found: not found
</code></pre>

Jonathan Lang
<p>I was able to resolve this by changing my Dockerfile to:</p>
<pre class="lang-sh prettyprint-override"><code>FROM node:alpine

WORKDIR /app
COPY package.json .
RUN npm install
COPY . .

CMD [&quot;npm&quot;, &quot;start&quot;]
</code></pre>
<p>The fix came after I changed <code>COPY</code> from the absolute path to <code>. .</code>, and cleared the npm cache with <code>npm cache clean -f</code>.</p>
