From 4f6012b18cf4a20ae6b2cc285c84cd07ecc0e446 Mon Sep 17 00:00:00 2001 From: Noah Halstead Date: Mon, 12 Apr 2021 16:12:17 -0400 Subject: [PATCH] Update Dockerfile --- Dockerfile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index be7d363c..3febb198 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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