Compare commits

..

No commits in common. "a3d80b10237c92b2d994c345d90df494ba70bacc" and "e3ee8e2e517230f7d2e4f9060c157e53af806527" have entirely different histories.

2 changed files with 3 additions and 5 deletions

View File

@ -23,10 +23,9 @@ RUN npm run build
# 生产阶段
FROM nginx:stable-alpine as production-stage
# 将构建好的文件复制到 nginx 目录
COPY --from=build-stage /app/dist /usr/share/nginx/html/
# 将 static 目录下的文件直接复制到网站根目录
COPY --from=build-stage /app/src/static /usr/share/nginx/html/
# 复制构建产物到 Nginx 目录
COPY --from=build-stage /app/dist /usr/share/nginx/html
# 暴露 80 端口
EXPOSE 80

View File

@ -1 +0,0 @@
377f116f44bc2d536eb1d6db9d339cbd