# 生产阶段 - 直接使用本地构建的 dist
FROM nginx:alpine

# 复制本地构建产物到 nginx
COPY dist /usr/share/nginx/html

# 复制 nginx 配置
COPY nginx.conf /etc/nginx/conf.d/default.conf

# 暴露端口
EXPOSE 80

CMD ["nginx", "-g", "daemon off;"]
