FROM nginx:alpine # 复制当前目录下的 nginx.conf 到镜像中 COPY nginx.conf /etc/nginx/nginx.conf # 保证 Nginx 前台运行 CMD ["nginx", "-g", "daemon off;"]