Files
xm-ui-web/Dockerfile
陈裕财 20a5d6509e docker
2025-04-16 18:35:39 +08:00

15 lines
374 B
Docker

# 使用官方的 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;"]