Skip to content

Commit 245babb

Browse files
build: try to speed up web-build.
1 parent 85ec2d7 commit 245babb

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

installer/Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
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+
corepack enable && \
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)