From e6323dd639cfb2f30b768f4c71963e87c91b24bd Mon Sep 17 00:00:00 2001 From: renjue Date: Tue, 23 Jun 2026 21:23:46 +0800 Subject: [PATCH] Fix Docker web-builder COPY paths under WORKDIR /src/web. Use ./src and ./public so Vite resolves /src/main.ts correctly instead of nesting files under web/web/src. Co-authored-by: Cursor --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 00b9d39..b6d3d64 100644 --- a/Dockerfile +++ b/Dockerfile @@ -22,8 +22,8 @@ FROM --platform=$BUILDPLATFORM ${IMAGE_PREFIX}node:20-alpine AS web-builder WORKDIR /src/web COPY web/package.json web/package-lock.json web/.npmrc ./ RUN npm ci -COPY web/src web/src -COPY web/public web/public +COPY web/src ./src +COPY web/public ./public COPY web/index.html web/tsconfig.json web/vite.config.ts ./ RUN npm run build