Files
aiot-platform-ui/Dockerfile.deploy
lzh 25ebd947b8
Some checks failed
Web UI CI/CD / build-and-deploy (push) Has been cancelled
chore: 改为本地构建,传dist文件到服务端
2025-12-23 13:43:32 +08:00

20 lines
477 B
Docker
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# ==============================
# 仅部署阶段 - 不进行构建
# 用于本地构建后,直接部署构建产物
# ==============================
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;"]