title: npm ERR! missing script: start error with Docker
body: <p>When running <code>docker-compose</code> to launch my app, I'm getting a <code>npm ERR! missing script: start</code> despite having a start script specified. </p>
  
  <p>package.json is </p>
  
  <pre><code>{
    "name": "myapp",
    "version": "0.0.0",
    "private": true,
    "scripts": {
      "start": "node ./bin/www"
    },
    "dependencies": {
      "body-parser": "~1.17.1",
      "cookie-parser": "~1.4.3",
      "debug": "~2.6.3",
      "ejs": "~2.5.6",
      "express": "~4.15.2",
      "mongoose": "^4.11.1",
      "morgan": "~1.8.1",
      "serve-favicon": "~2.4.2"
    }
  }
  </code></pre>
  
  <p>and docker-compose.yml is</p>
  
  <pre><code>version: "2"
  services:
    web:
      build: .
      volumes:
        - ./:/app
      ports:
        - "3500:3500"
  </code></pre>
  
  <p>2 things are not making sense to me:</p>
  
  <ol>
  <li>Launching the app with its Dockerfile works: if the missing start script really was the problem, shouldn't this fail as well?</li>
  <li>package.json does have a start script as you can see above</li>
  </ol>
  
  <p>Not sure if needed but the Dockerfile is</p>
  
  <pre><code>FROM node:argon
  
  RUN mkdir /app
  
  WORKDIR /app
  
  COPY package.json /app
  
  RUN npm install
  
  COPY . /app
  
  EXPOSE 3500
  
  ENV PORT 3500
  CMD ["npm", "start"]
  </code></pre>
  
  <p>EDIT: I'm using <code>docker run -p 3500:3500 app</code> and <code>docker-compose up</code></p>
  
  <p>I'm new to this so may be missing something but am a bit stuck now.</p>