# 使用官方的 Nginx 镜像作为基础镜像 FROM m.daocloud.io/docker.io/nginx:alpine # 将自定义的 Nginx 配置文件复制到容器内 COPY nginx.conf /etc/nginx/conf.d/default.conf # 将打包好的前端文件复制到 Nginx 的 html 目录 COPY dist-prod/ /usr/share/nginx/html/ # 暴露端口 EXPOSE 8067 # 启动 Nginx CMD ["nginx", "-g", "daemon off;"]