Skip to content

Instantly share code, notes, and snippets.

@starlightromero
Created July 19, 2021 20:10
Show Gist options
  • Select an option

  • Save starlightromero/6ce70dcaa27a3a9a8b02569c0ca97c22 to your computer and use it in GitHub Desktop.

Select an option

Save starlightromero/6ce70dcaa27a3a9a8b02569c0ca97c22 to your computer and use it in GitHub Desktop.
Node Dockerfile.alpine
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