From 80a0e7eeb6fe0eae58194358956caba6ed9a45d6 Mon Sep 17 00:00:00 2001 From: houhuan Date: Wed, 13 May 2026 22:52:48 +0800 Subject: [PATCH] fix: frontend Docker build output to ./dist instead of ../backend/static Co-Authored-By: Claude Opus 4.7 --- Dockerfile.frontend | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile.frontend b/Dockerfile.frontend index 940d4c8..a1a0462 100644 --- a/Dockerfile.frontend +++ b/Dockerfile.frontend @@ -5,7 +5,8 @@ WORKDIR /app COPY web/frontend/package.json web/frontend/package-lock.json* ./ RUN npm install COPY web/frontend/ . -RUN npm run build +# Override outDir for Docker build (vite config uses ../backend/static for local dev) +RUN npx vite build --outDir ./dist # Production stage FROM nginx:alpine