Created
July 19, 2021 20:10
-
-
Save starlightromero/6ce70dcaa27a3a9a8b02569c0ca97c22 to your computer and use it in GitHub Desktop.
Node Dockerfile.alpine
This file contains hidden or 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:14.17-alpine as build | |
| WORKDIR /usr/src/app | |
| COPY package*.json ./ | |
| RUN npm ci --production | |
| COPY . . | |
| FROM node:14.17-alpine | |
| WORKDIR /usr/src/app | |
| COPY --from=build /usr/src/app . | |
| EXPOSE 8080 | |
| CMD [ "npm", "start" ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment