chore: 改为本地构建,传dist文件到服务端
Some checks failed
Web UI CI/CD / build-and-deploy (push) Has been cancelled
Some checks failed
Web UI CI/CD / build-and-deploy (push) Has been cancelled
This commit is contained in:
19
Dockerfile.deploy
Normal file
19
Dockerfile.deploy
Normal file
@@ -0,0 +1,19 @@
|
||||
# ==============================
|
||||
# 仅部署阶段 - 不进行构建
|
||||
# 用于本地构建后,直接部署构建产物
|
||||
# ==============================
|
||||
FROM nginx:alpine
|
||||
|
||||
# 移除默认配置
|
||||
RUN rm /etc/nginx/conf.d/default.conf
|
||||
|
||||
# 复制自定义 Nginx 配置
|
||||
COPY apps/web-antd/nginx.conf /etc/nginx/conf.d/default.conf
|
||||
|
||||
# 复制构建产物(从本地构建好的dist目录)
|
||||
COPY apps/web-antd/dist /usr/share/nginx/html
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
CMD ["nginx", "-g", "daemon off;"]
|
||||
|
||||
Reference in New Issue
Block a user