# 使用 Nginx 官方轻量镜像 FROM nginx:1.25-alpine # 拷贝前端构建产物 COPY dist/ /usr/share/nginx/html/ # 暴露端口 EXPOSE 80 CMD ["nginx", "-g", "daemon off;"]