# Nginx 镜像 Dockerfile # 用途:构建包含自定义配置的 Nginx 镜像 FROM nginx:alpine # 复制 Nginx 配置 COPY nginx.conf /etc/nginx/conf.d/default.conf # 暴露端口 EXPOSE 80 443 # 启动 Nginx CMD ["nginx", "-g", "daemon off;"]