# 使用官方 Nginx 镜像 FROM nginx:stable-alpine3.20-perl # 替换 Nginx 的默认配置文件(如果需要) COPY nginx.conf /etc/nginx/conf.d/default.conf # 复制全书目录中的所有内容到 Nginx 的默认 HTML 路径 COPY ./全书/ /usr/share/nginx/html/ # 暴露端口 EXPOSE 80 # 启动 Nginx 服务 CMD ["nginx", "-g", "daemon off;"]