Skip to content

Instantly share code, notes, and snippets.

@thedewpoint
Created December 16, 2021 01:21
Show Gist options
  • Save thedewpoint/8e2e7bed83f23e768b2510cc4c376517 to your computer and use it in GitHub Desktop.
Save thedewpoint/8e2e7bed83f23e768b2510cc4c376517 to your computer and use it in GitHub Desktop.
dockerfile for nodejs service
FROM node:16.13.1-alpine AS build-env
COPY . /app
WORKDIR /app
RUN npm ci --only=production
FROM node:16.13.1-alpine
COPY --from=build-env /app /app
WORKDIR /app
CMD ["./bin/www"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment