Fix Docker web-builder COPY paths under WORKDIR /src/web.
CI / docker (push) Has been cancelled

Use ./src and ./public so Vite resolves /src/main.ts correctly instead of
nesting files under web/web/src.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
renjue
2026-06-23 21:23:46 +08:00
parent a32547a43e
commit e6323dd639
+2 -2
View File
@@ -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