Created
March 10, 2021 11:16
-
-
Save azlkiniue/e15118876ee2142777e0cc6ef347dee8 to your computer and use it in GitHub Desktop.
simple nodejs dockerfile example
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:14-alpine | |
WORKDIR /app | |
COPY ["package.json", "package-lock.json*", "./"] | |
RUN npm install | |
COPY . . | |
RUN npm run build | |
CMD [ "npm", "run", "start" ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment