# --- 网关运行阶段 --- FROM 106.52.199.114:5000/nginx:latest AS gateway # 复制自定义的 Nginx 配置文件 # 假设 Nginx 配置在 gateway 项目的根目录,名为 nginx.conf.gateway COPY nginx.conf.gateway /etc/nginx/nginx.conf # 暴露 Nginx 监听的端口 # 在 nginx.conf.gateway 中配置了 8000 和 8001 端口 EXPOSE 8000 EXPOSE 8001 EXPOSE 8002 EXPOSE 443 # 启动 Nginx 服务器 CMD ["nginx", "-g", "daemon off;"]