Skip to content

Instantly share code, notes, and snippets.

@sachith-1
Created April 27, 2022 10:51
Show Gist options
  • Save sachith-1/8dbc5bed8d4d14f1ebcbec7dfde327ab to your computer and use it in GitHub Desktop.
Save sachith-1/8dbc5bed8d4d14f1ebcbec7dfde327ab to your computer and use it in GitHub Desktop.
Dockerfile for docker builder pattern demo - production
FROM node:17.9.0-alpine3.15
WORKDIR /usr/src/app
COPY package*.json ./
RUN npm install --only=production
COPY distapp ./
EXPOSE 3000
ENTRYPOINT [ "node","./app.js" ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment