title: Docker: RUN `npm run build` gives cannot find package.json file
body: <p>So the situation is that I have coupled a bash script with docker. I use bash script to pull my code from the remote repo, and then execute the <code>docker-compose</code></p>
  
  <p>Here's my dockerfile</p>
  
  <pre><code>FROM node:6
  WORKDIR /home/ayush/project-folder
  RUN pwd
  RUN npm run build
  CMD ["forever", "server/app.js"]
  </code></pre>
  
  <p>Here's the section of my <code>docker-compose.yml</code> that has the above service listed:</p>
  
  <pre><code>  web:
      build: ./client
      environment:
        - NODE_VERSION=$NODE_WEB_VERSION
      ports:
        - "4200:4200"
    api:
  </code></pre>
  
  <p>And here's my simple bash script</p>
  
  <pre><code>#!/usr/bin/env bash
  frontend=$1
  backend=$2
  git clone //remote_url --branch $frontend --single-branch
  mv project-folder ~/
  docker-compose up
  </code></pre>
  
  <p>But the issue is that the <code>RUN npm run build gives error</code>,</p>
  
  <pre><code>enoent ENOENT: no such file or directory, open '/home/ayush/project-folder/package.json'
  </code></pre>
  
  <p>What could be the issue?</p>