title: Docker container exiting immediately after starting when using npm init react-app
body: <p>I am trying to start a Docker container with a react project, the project is created using npm init react-app.</p>
  
  <p>This is my docker file </p>
  
  <pre><code># Specify a base image
  FROM node:alpine
  
  WORKDIR /usr/app
  
  # Install some depenendencies
  COPY ./package.json ./
  RUN npm install
  COPY ./ ./
  
  # Default command
  CMD ["npm", "run", "start"]
  </code></pre>
  
  <p><code>Docker build .</code> creates an image successfully (with a lot of npm warnings) and then when I run <code>Docker run &lt;image&gt;</code> this is the output in my terminal</p>
  
  <pre><code>&gt; mytest@0.1.0 start /usr/app
  &gt; react-scripts start
  
  ℹ ｢wds｣: Project is running at http://172.17.0.2/
  ℹ ｢wds｣: webpack output is served from 
  ℹ ｢wds｣: Content not from webpack is served from /usr/app/public
  ℹ ｢wds｣: 404s will fallback to /
  Starting the development server...
  </code></pre>
  
  <p>Soon as it hits <code>Starting the development server...</code> it stops running in my terminal. If I check <code>Docker ps</code> I can see no containers are running, if I run <code>Docker ps -a</code> I can see a container was started up and then exited immediately.</p>
  
  <p><code>Docker logs</code> shows the terminal output above, anybody run into this situation? Its only with my npm init react-app project, my other nodejs + express projects run fine with the exact same docker file</p>