mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
build: try to speed up web-build.
This commit is contained in:
parent
c631d775bf
commit
20cc5325f6
|
|
@ -1,7 +1,7 @@
|
|||
FROM node:24-alpine AS web-build
|
||||
COPY ui ui
|
||||
RUN cd ui && \
|
||||
npm install && \
|
||||
npm install --prefer-offline --no-audit && \
|
||||
NODE_OPTIONS="--max-old-space-size=4096" npm run build && \
|
||||
NODE_OPTIONS="--max-old-space-size=4096" npm run build-chat && \
|
||||
find . -maxdepth 1 ! -name '.' ! -name 'dist' ! -name 'public' -exec rm -rf {} +
|
||||
|
|
|
|||
Loading…
Reference in New Issue