From 88cb2ae02b532ac8ffb4eca64ef3f5ff77902ecc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BC=96=E7=A0=81=E7=8C=BF?= Date: Tue, 7 Oct 2025 03:34:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dpath?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 56b3f97..f67c9a0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,9 +14,8 @@ RUN npx vite build --base=/app-product/ FROM nginx:alpine # 构建产物放到 /usr/share/nginx/html/app-product -# nginx.conf 也需要修改 COPY --from=builder /app/dist /usr/share/nginx/html/app-product # 覆盖 Nginx 配置,支持 SPA 子路径 -COPY docker/nginx.conf /etc/nginx/conf.d/default.conf +COPY nginx.conf /etc/nginx/conf.d/default.conf EXPOSE 80 CMD ["nginx", "-g", "daemon off;"] \ No newline at end of file