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 2023-09-26 10:36  荣锋亮  阅读(149)  评论(0编辑  收藏  举报

导航