Skip to content

Instantly share code, notes, and snippets.

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 ojhaujjwal/015301924ec70bc467eafa87e88e72ab to your computer and use it in GitHub Desktop.
Save ojhaujjwal/015301924ec70bc467eafa87e88e72ab to your computer and use it in GitHub Desktop.
FROM node:12.16.1-alpine3.11 as base
WORKDIR /var/www
COPY package.json package-lock.json ./
RUN npm install
COPY ./ ./
ENV NODE_ENV "production"
RUN npm run build && npm prune --production
CMD ["npm", "run", "start:prod"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment