Skip to content

Instantly share code, notes, and snippets.

@bennyng
Created May 24, 2020 07:09
Show Gist options
  • Save bennyng/01edd6052ad91ad7dd5badece5ef5925 to your computer and use it in GitHub Desktop.
Save bennyng/01edd6052ad91ad7dd5badece5ef5925 to your computer and use it in GitHub Desktop.
Dockerfile for NestJS (non optimized)
FROM node:13.14-alpine
WORKDIR /usr/src/app
COPY yarn.lock ./
COPY package.json ./
RUN yarn install --frozen-lockfile
COPY . .
RUN yarn build
CMD ["node", "dist/apps/api/main"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment