docker node js 12 code example
Example 1: nodejs docker
FROM node:boron
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
COPY package.json /usr/src/app/
RUN npm install
COPY . /usr/src/app
EXPOSE 3000
CMD ["npm","start"]
Example 2: nodejs 14 in docker
docker run -p 49160:8080 -d <your username>/node-web-app