Skip to content

Instantly share code, notes, and snippets.

@angellandros
Last active October 19, 2019 02:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save angellandros/5b2945203a8f358720a11d2f6b3515c0 to your computer and use it in GitHub Desktop.
Save angellandros/5b2945203a8f358720a11d2f6b3515c0 to your computer and use it in GitHub Desktop.
Sample Dockerfile for Express.js app
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