FROM harbor.linuxtian.com/library/nginx:latest


# 将构建好的 dist 目录复制到 Nginx 的默认静态文件目录
COPY dist /usr/share/nginx/html

# 如果有自定义的 nginx 配置文件，可以复制到容器中
COPY front-server.conf /etc/nginx/conf.d/default.conf

# 暴露 Nginx 使用的端口，默认是 80
EXPOSE 80

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