# 单阶段构建:直接使用已有的 nginx 镜像 # 从 Docker Hub 拉取(通过 daemon.json 配置的镜像加速器) FROM nginx:alpine COPY dist/ /usr/share/nginx/html/ COPY nginx.conf /etc/nginx/conf.d/default.conf EXPOSE 80 CMD ["nginx", "-g", "daemon off;"]