Files
xm-ui-web/Dockerfile

15 lines
374 B
Docker
Raw Normal View History

2025-03-22 09:08:41 +08:00
# 使用官方的 Nginx 镜像作为基础镜像
FROM m.daocloud.io/docker.io/nginx:alpine
# 将自定义的 Nginx 配置文件复制到容器内
COPY nginx.conf /etc/nginx/conf.d/default.conf
# 将打包好的前端文件复制到 Nginx 的 html 目录
COPY dist-prod/ /usr/share/nginx/html/
# 暴露端口
EXPOSE 8067
# 启动 Nginx
CMD ["nginx", "-g", "daemon off;"]