test: 增加管理端部署契约验证
- 增加生产构建与 Nginx 镜像冒烟命令 - 校验根路径跳转、静态资源前缀和错误分享地址
This commit is contained in:
12
easyflow-ui-admin/scripts/deploy/Dockerfile.smoke
Normal file
12
easyflow-ui-admin/scripts/deploy/Dockerfile.smoke
Normal 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;"]
|
||||
Reference in New Issue
Block a user