Created
April 27, 2022 10:51
-
-
Save sachith-1/8dbc5bed8d4d14f1ebcbec7dfde327ab to your computer and use it in GitHub Desktop.
Dockerfile for docker builder pattern demo - production
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: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