# 使用一个基础镜像 FROM nginx:stable # 拷贝自定义的 nginx 配置文件 COPY nginx.conf /etc/nginx/nginx.conf # 将前端构建的静态文件复制到 nginx 的默认路径 COPY dist /usr/share/nginx/html