mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
optimize Web build
This commit is contained in:
parent
bbd28c7a7e
commit
8fe2d43b64
3 changed files with 8 additions and 6 deletions
|
|
@ -1,3 +1,4 @@
|
|||
**/.gitignore
|
||||
**/azure-pipelines.yaml
|
||||
**/Dockerfile
|
||||
Dockerfile
|
||||
.dockerignore
|
||||
.gitignore
|
||||
azure-pipelines.yaml
|
||||
1
web/.env
Normal file
1
web/.env
Normal file
|
|
@ -0,0 +1 @@
|
|||
INLINE_RUNTIME_CHUNK=false
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue