# 使用 Nginx 作为基础镜像
FROM nginx:latest

# 复制构建后的前端应用到 Nginx 的默认 HTML 目录
COPY ./dist /usr/share/nginx/html

# 复制当前目录下的 nginx.conf.test.prod 到容器的 /etc/nginx 目录
COPY ./ops/nginx.conf.prod /etc/nginx/nginx.conf

EXPOSE 1001

# 启动 Nginx
CMD ["nginx", "-g", "daemon off;"]