From 0cf7a00dcf31ade19d475e0cb14807cbc442cafd Mon Sep 17 00:00:00 2001 From: Dan Date: Mon, 11 Jan 2021 18:58:18 -0500 Subject: [PATCH] Another fix to the docker file. --- Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index cd68471..f688c1d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,7 +5,10 @@ WORKDIR /app ADD package.json /app/ ADD package-lock.json /app/ COPY . /app/ -RUN npm install +ARG build_config=prod +RUN npm install && \ + npm run build:$build_config + ### STAGE 2: Run ### FROM nginx:alpine