fix(docker):修复docker构建失败

This commit is contained in:
chengqian committed 2026-06-08 16:00:49 +08:00
1 parent 675da6b46c
commit ed674ce989
1 file changed
+4
+4
View File
@@ -21,6 +21,10 @@ COPY web/tenant/package.json web/tenant/bun.lock* ./tenant/
RUN cd admin && bun install --frozen-lockfile && \
cd ../tenant && bun install --frozen-lockfile
# Copy source files after dependency install (keeps install layer cached when only source changes)
COPY web/admin/ ./admin/
COPY web/tenant/ ./tenant/
# Resolve version: build arg → VERSION file → dev
RUN if [ "$VERSION" = "dev" ]; then \
VERSION=$(cat /build/VERSION 2>/dev/null || echo "dev"); \