This commit is contained in:
wood911010 committed 2025-07-31 13:55:37 +08:00
1 parent e182a79209
commit f93716c023
1 file changed
+7 -1
+7 -1
View File
@@ -8,7 +8,13 @@ COPY frontend/package.json ./
RUN npm install
COPY frontend/ ./
RUN npm run prod
# Set build environment variables
ENV VITE_OUTDIR=dist
ENV VITE_ADDRESS_BASE_URL=/
# Build the project and verify output
RUN npm run prod && ls -la && ls -la dist/
# Production stage with Nginx
FROM nginx:alpine