修正了前端镜像的spa路由问题

This commit is contained in:
carry
2025-02-20 01:22:19 +08:00
parent b40bc183d0
commit 1abc63a603
2 changed files with 24 additions and 0 deletions

View File

@@ -23,6 +23,9 @@ FROM nginx:stable-alpine as production-stage
# 复制构建好的文件到Nginx目录
COPY --from=build-stage /app/dist /usr/share/nginx/html
# 复制Nginx配置文件
COPY nginx.conf /etc/nginx/conf.d/default.conf
# 暴露80端口
EXPOSE 80