Another fix to the docker file.

This commit is contained in:
Dan 2021-01-11 18:58:18 -05:00
parent 4f1e6429f4
commit 0cf7a00dcf
1 changed files with 4 additions and 1 deletions

View File

@ -5,7 +5,10 @@ WORKDIR /app
ADD package.json /app/ ADD package.json /app/
ADD package-lock.json /app/ ADD package-lock.json /app/
COPY . /app/ COPY . /app/
RUN npm install ARG build_config=prod
RUN npm install && \
npm run build:$build_config
### STAGE 2: Run ### ### STAGE 2: Run ###
FROM nginx:alpine FROM nginx:alpine