2025-09-24 15:00:34 +08:00

18 lines
367 B
Docker
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 使用轻量级 Nginx 基础镜像
FROM nginx:1.25-alpine
# 删除默认配置
RUN rm -rf /etc/nginx/conf.d/*
# 复制自定义 Proxy 配置
# 可以在构建时直接COPY进去也可以运行时挂载
COPY conf.d/ /etc/nginx/conf.d/
# 日志目录(可选)
VOLUME ["/var/log/nginx"]
# 暴露端口
EXPOSE 80 443
CMD ["nginx", "-g", "daemon off;"]