feat: 新增TenantUI主分支自动发布流水线
Some checks failed
Build and Deploy TenantUI / build-and-deploy (push) Failing after 1s

This commit is contained in:
2026-02-24 10:32:09 +08:00
parent 5e8b4c9e5a
commit 371a56c9b1
2 changed files with 73 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
FROM nginx:stable-alpine AS runtime
# 配置 nginx
RUN echo "types { application/javascript js mjs; }" > /etc/nginx/conf.d/mjs.conf \
&& rm -rf /etc/nginx/conf.d/default.conf
# 复制宿主机构建产物
COPY publish/web-antd-dist /usr/share/nginx/html
# 复制 nginx 配置
COPY scripts/deploy/nginx.conf /etc/nginx/nginx.conf
EXPOSE 8080
# 启动 nginx
CMD ["nginx", "-g", "daemon off;"]