This commit is contained in:
aaron 2025-02-24 23:35:56 +08:00
parent e3ee8e2e51
commit 214b3782c7
2 changed files with 4 additions and 0 deletions

View File

@ -26,6 +26,9 @@ FROM nginx:stable-alpine as production-stage
# 复制构建产物到 Nginx 目录 # 复制构建产物到 Nginx 目录
COPY --from=build-stage /app/dist /usr/share/nginx/html COPY --from=build-stage /app/dist /usr/share/nginx/html
# 复制 static 目录下的文件到 Nginx 根目录
COPY static/ /usr/share/nginx/html/
# 暴露 80 端口 # 暴露 80 端口
EXPOSE 80 EXPOSE 80

View File

@ -0,0 +1 @@
377f116f44bc2d536eb1d6db9d339cbd