title: COPY package.json - Dockerfile
body: <p>I did a Dockerfile to a project in Node.js but an error happened.</p>
  
  <p>Here's the Dockerfile:</p>
  
  <pre><code>FROM node:latest
  RUN npm install nodemon -g
  WORKDIR ./app
  COPY package.json ./app
  RUN npm install -g
  COPY server.js ./app
  EXPOSE 3000
  CMD ["npm", "start"] 
  </code></pre>
  
  <p>When I tried building this Dockerfile happen an error like this:</p>
  
  <pre><code>Step 4/8 : COPY package.json ./app
  COPY failed: stat /var/lib/docker/tmp/docker-builderXXXXXXXX/package.json: no such file or directory
  </code></pre>
  
  <p>How can I fix it?</p>
  
  <p>Docker version 17.12.0</p>