test: 增加管理端部署契约验证

- 增加生产构建与 Nginx 镜像冒烟命令

- 校验根路径跳转、静态资源前缀和错误分享地址
This commit is contained in:
2026-07-24 19:03:08 +08:00
parent da59c713f9
commit cb06599dca
5 changed files with 120 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
FROM swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/nginx:stable-alpine
RUN rm -f /etc/nginx/conf.d/default.conf
COPY app/dist/ /usr/share/nginx/html/flow/
COPY scripts/deploy/nginx.conf /etc/nginx/nginx.conf
RUN nginx -t
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]