FROM node:15.13-alpine
WORKDIR /testdocker
ENV PATH="./node_modules/.bin:$PATH"
COPY . .
RUN npm run build
CMD ["npm", "start"]
$ docker build --tag react .
$ docker run --publish 3000:3000 react
$ docker stop <container_name>
$ docker rm <container_name>