Skip to content

Commit ded8281

Browse files
build: try to speed up web-build.
1 parent 63d441f commit ded8281

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

installer/Dockerfile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
FROM node:18-alpine3.18 AS web-build
1+
FROM node:24-alpine AS web-build
22
COPY ui ui
33
RUN cd ui && \
4-
npm install && \
5-
NODE_OPTIONS="--max-old-space-size=4096" npm run build && \
6-
NODE_OPTIONS="--max-old-space-size=4096" npm run build-chat && \
4+
npm install -g pnpm && \
5+
pnpm install && \
6+
NODE_OPTIONS="--max-old-space-size=4096" pnpm run build && \
7+
NODE_OPTIONS="--max-old-space-size=4096" pnpm run build-chat && \
78
find . -maxdepth 1 ! -name '.' ! -name 'dist' ! -name 'public' -exec rm -rf {} +
89

910
FROM ghcr.io/1panel-dev/maxkb-base:python3.11-pg17.6 AS stage-build

0 commit comments

Comments
 (0)