nginx-clojure nginx 1.25.2 版本docker 镜像

主要是测试下nginx-clojure 有nginx 1.25.2 的兼容性,顺便基于原有的构建弄一个方便测试的debug 版本的镜像

构建

  • 构建命令

实际结合业务修改下

./configure --prefix= --sbin-path=nginx --conf-path=conf/nginx.conf --error-log-path=logs/error.log --http-log-path=logs/access.log --pid-path=logs/nginx.pid --lock-path=logs/nginx.lock --http-client-body-temp-path=temp/client_temp --http-proxy-temp-path=temp/proxy_temp --http-fastcgi-temp-path=temp/fastcgi_temp --http-uwsgi-temp-path=temp/uwsgi_temp --http-scgi-temp-path=temp/scgi_temp --with-http_ssl_module --with-http_v2_module --with-pcre-jit --with-debug --with-http_image_filter_module=dynamic --with-http_realip_module --with-http_addition_module --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_mp4_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_random_index_module --with-zlib=../zlib-1.2.13 --with-pcre=../pcre-8.40 --with-openssl=../openssl-3.1.0 --with-http_secure_link_module --with-http_stub_status_module --with-mail --with-mail_ssl_module   --with-ipv6 --with-debug --with-cc-opt='-O0 -g' --add-module=../nginx-clojure-master/src/c    
  • dockerfie
FROM openjdk:10-slim
LABEL nginx="1.25.2"
WORKDIR /usr/local/nginx
COPY nginx-clojure-0.6.0/ /usr/local/nginx
COPY nginx-clojure-master/nginx /usr/local/nginx/nginx
RUN chmod +x /usr/local/nginx/nginx 
CMD ["/usr/local/nginx/nginx", "-g", "daemon off;"]

说明

docker 镜像已经push dockerhub了 dalongrong/nginx-clojure-master

参考资料

https://github.com/rongfengliang/nginx-clojure-dockerfile

posted on   荣锋亮  阅读(189)  评论(0编辑  收藏  举报

相关博文:
阅读排行:
· 全程不用写代码,我用AI程序员写了一个飞机大战
· DeepSeek 开源周回顾「GitHub 热点速览」
· 记一次.NET内存居高不下排查解决与启示
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· .NET10 - 预览版1新功能体验(一)
历史上的今天:
2022-09-26 JadConfig classpathRepository 扩展
2021-09-26 cube.js websocket 实时数据更新说明
2020-09-26 gopacket 流量抓包golang 包
2018-09-26 stenciljs 学习六 组件开发样式指南
2018-09-26 stenciljs 学习五 事件
2018-09-26 stenciljs 学习四 组件装饰器
2018-09-26 stenciljs 学习三 组件生命周期

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示