- 更新 Nginx 配置文件路径,使用相对路径以适应容器环境 - 新增 proxy_params.conf 和 proxy_params_file.conf 文件,统一代理参数配置- 优化 Nginx 配置,提高性能和可维护性 - 调整文件上传和缓冲区大小限制,适应大文件传输需求 - 精简配置文件结构,提高可读性
20 lines
567 B
Docker
20 lines
567 B
Docker
FROM jmal/nginx-drawio:latest
|
|
|
|
COPY nginx/nginx.conf.no_office.template /etc/nginx/nginx.conf.no_office.template
|
|
COPY nginx/nginx.conf.template /etc/nginx/nginx.conf.template
|
|
|
|
COPY nginx/proxy_params.conf /etc/nginx/conf/proxy_params.conf
|
|
COPY nginx/proxy_params_file.conf /etc/nginx/conf/proxy_params_file.conf
|
|
|
|
COPY dist /var/www/public
|
|
|
|
COPY config.js.template /var/www/public/config.js.template
|
|
|
|
COPY docker-entrypoint.sh /docker-entrypoint.sh
|
|
RUN chmod +x /docker-entrypoint.sh
|
|
|
|
EXPOSE 80
|
|
|
|
ENTRYPOINT ["/docker-entrypoint.sh"]
|
|
CMD ["nginx", "-g", "daemon off;"]
|