Docker container exiting immediately after starting when using npm init react-app
问题 I am trying to start a Docker container with a react project, the project is created using npm init react-app. This is my docker file # 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"] Docker build . creates an image successfully (with a lot of npm warnings) and then when I run Docker run <image> this is the output in my terminal > mytest@0.1.0 start /usr/app >