feat: 新增TenantUI主分支自动发布流水线
Some checks failed
Build and Deploy TenantUI / build-and-deploy (push) Failing after 1s
Some checks failed
Build and Deploy TenantUI / build-and-deploy (push) Failing after 1s
This commit is contained in:
16
scripts/deploy/Dockerfile.runtime
Normal file
16
scripts/deploy/Dockerfile.runtime
Normal 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;"]
|
||||
Reference in New Issue
Block a user