Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
nhalstead committed May 24, 2021
1 parent d54db67 commit 4f6012b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
FROM node:12-alpine as base
WORKDIR /service

FROM base as build
COPY . ./
FROM base as dependencies
COPY package.json package-lock.json tsconfig.json ./
RUN npm ci --production true

FROM dependencies as build
RUN npm ci --production false
COPY . ./
RUN npm run build

FROM base as release
Expand Down

0 comments on commit 4f6012b

Please sign in to comment.