Created
March 27, 2022 06:18
-
-
Save DavidDeCoding/6892688d46479da07127b0a51b40d5b5 to your computer and use it in GitHub Desktop.
Sample ExpressJS Application Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM node:12.4-alpine | |
RUN mkdir /app | |
WORKDIR /app | |
COPY package.json . | |
RUN npm install && mv node_modules /node_modules | |
COPY . . | |
CMD ["node", "index.js"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment