Nodejs Express in Docker

added by DotNetKicks
9/16/2021 5:29:34 PM

455 Views

This is a demo of how you can containerize a Nodejs Express application. .dockerignore node_modules npm-debug.log Dockerfile FROM node:12.18.2 WORKDIR /usr/src/app COPY package*.json ./ RUN npm install COPY . . ENTRYPOINT ["node"] CMD ["server.js"] Dockerizing a Nodejs Express Login to Docker Hub $ docker login Create a Nodejs Express container.


0 comments