Last active
October 19, 2019 02:32
-
-
Save angellandros/5b2945203a8f358720a11d2f6b3515c0 to your computer and use it in GitHub Desktop.
Sample Dockerfile for Express.js app
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.10 | |
RUN mkdir -p /usr/src/app | |
WORKDIR /usr/src/app | |
COPY package.json /usr/src/app/ | |
RUN npm install | |
COPY . /usr/src/app | |
RUN npm run build:all | |
ENV NODE_ENV docker | |
EXPOSE 3000 | |
CMD [ "npm", "run", "server" ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment