FROM nginx # 复制自定义nginx配置 COPY nginx.conf /etc/nginx/conf.d/ # 复制Vue打包文件到nginx目录 COPY dist/ /usr/share/nginx/html/ # 暴露80端口 EXPOSE 80 # 启动nginx CMD ["nginx", "-g", "daemon off;"]