fix: update Dockerfile to use 'build-only' command for UI build process

This commit is contained in:
CaptainB 2025-06-16 10:47:31 +08:00
parent 1b98e352b6
commit 34a096ccf4

View File

@ -3,7 +3,7 @@ FROM node:18-alpine3.18 AS web-build
COPY ui ui COPY ui ui
RUN cd ui && \ RUN cd ui && \
npm install && \ npm install && \
npm run build && \ npm run build-only && \
rm -rf ./node_modules rm -rf ./node_modules
FROM ghcr.io/1panel-dev/maxkb-base:python3.11-pg17.4 AS stage-build FROM ghcr.io/1panel-dev/maxkb-base:python3.11-pg17.4 AS stage-build