Compare commits

...

2 Commits

Author SHA1 Message Date
aaron
a3d80b1023 update 2025-02-24 23:40:53 +08:00
aaron
214b3782c7 update 2025-02-24 23:35:56 +08:00
2 changed files with 5 additions and 3 deletions

View File

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

View File

@ -0,0 +1 @@
377f116f44bc2d536eb1d6db9d339cbd