optimize Web build

This commit is contained in:
Collin M. Barrett 2020-02-08 08:21:39 -06:00
parent bbd28c7a7e
commit 8fe2d43b64
3 changed files with 8 additions and 6 deletions

View file

@ -1,3 +1,4 @@
**/.gitignore
**/azure-pipelines.yaml
**/Dockerfile
Dockerfile
.dockerignore
.gitignore
azure-pipelines.yaml

1
web/.env Normal file
View file

@ -0,0 +1 @@
INLINE_RUNTIME_CHUNK=false

View file

@ -11,11 +11,11 @@ FROM node:alpine as build
# install
WORKDIR /usr/src/app/
COPY package*.json ./
RUN npm install --only=prod
RUN npm ci --only=production
# build
COPY . ./
RUN INLINE_RUNTIME_CHUNK=false npm run build
COPY . .
RUN npm run build
# final
FROM base as final