build: try to speed up web-build.

This commit is contained in:
liqiang-fit2cloud 2025-08-19 18:26:45 +08:00
parent c631d775bf
commit 20cc5325f6

View File

@ -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 {} +