# 使用 Nginx 托管已构建的前端
FROM nginx:alpine

# 复制构建产物到 Nginx 目录
COPY apps/web-antd/dist /usr/share/nginx/html

# 复制 Nginx 配置
COPY nginx.conf /etc/nginx/conf.d/default.conf

# 暴露端口
EXPOSE 5666

# 启动 Nginx
CMD ["nginx", "-g", "daemon off;"]
