Skip to content

Instantly share code, notes, and snippets.

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

  • Save starlightromero/809ec553a84c27abdd749002abe1bdbb to your computer and use it in GitHub Desktop.

Select an option

Save starlightromero/809ec553a84c27abdd749002abe1bdbb to your computer and use it in GitHub Desktop.
Node Dockerfile.buster
FROM node:14.17-buster as build
WORKDIR /usr/src/app
COPY package*.json ./
RUN npm ci --production
COPY . .
FROM node:14.17-buster
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