nginx-drupal11 (latest)
Published 2025-04-30 12:39:07 +12:00 by lightweight
Installation
docker pull forge.magnificent.nz/lightweight/nginx-drupal11:latest
sha256:7ada177446faef80394bf0fbeb1f786b8d235b2360c94c3769eaa252b9e26f69
Image Layers
ADD file:087f68d5558e06c7160c9322582925635e7539a7702413828357c28c77f6f345 in / |
CMD ["bash"] |
MAINTAINER Dave Lane <dave@davelane.nz> @lightweight@mastodon.nzoss.nz |
ENV NGINX_VERSION=1.28.0 |
ENV NGX_CACHE_PURGE_VERSION=2.3 |
RUN /bin/sh -c apt-get update && apt-get install -y wget build-essential libssl-dev libpcre3 libpcre3-dev && apt-get clean # buildkit |
RUN /bin/sh -c cd /tmp && wget http://nginx.org/download/nginx-$NGINX_VERSION.tar.gz http://labs.frickle.com/files/ngx_cache_purge-$NGX_CACHE_PURGE_VERSION.tar.gz && tar -zxvf nginx-$NGINX_VERSION.tar.gz && mv nginx-$NGINX_VERSION nginx && rm nginx-$NGINX_VERSION.tar.gz && tar -zxvf ngx_cache_purge-$NGX_CACHE_PURGE_VERSION.tar.gz && mv ngx_cache_purge-$NGX_CACHE_PURGE_VERSION ngx_cache_purge && rm ngx_cache_purge-$NGX_CACHE_PURGE_VERSION.tar.gz # buildkit |
RUN /bin/sh -c apt-get install -y libgeoip-dev zlib1g-dev # buildkit |
RUN /bin/sh -c cd /tmp/nginx && ./configure --user=www-data --group=www-data --sbin-path=/usr/local/sbin --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --http-client-body-temp-path=/var/cache/nginx/client_temp --http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp --http-proxy-temp-path=/var/cache/nginx/proxy_temp --http-scgi-temp-path=/var/cache/nginx/scgi_temp --http-uwsgi-temp-path=/var/cache/nginx/uwsgi_temp --with-compat --with-file-aio --with-http_addition_module --with-http_gzip_static_module --with-http_ssl_module --with-http_geoip_module --with-http_flv_module --with-http_sub_module --with-http_realip_module --with-http_dav_module --with-http_gunzip_module --with-http_random_index_module --with-http_secure_link_module --with-http_auth_request_module --without-http_ssi_module --with-threads --with-stream --with-stream_ssl_module --with-http_v2_module --with-ipv6 --without-mail_pop3_module --without-mail_imap_module --without-mail_smtp_module --with-cc-opt='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic' --add-module=/tmp/ngx_cache_purge && make && make install # buildkit |
RUN /bin/sh -c apt-get install -y less dnsutils vim sudo telnet && apt-get clean # buildkit |
RUN /bin/sh -c mkdir /var/www && mv /usr/local/nginx/html /var/www/html && chown -R www-data:www-data /var/www/html && mkdir -p /etc/nginx/conf.d # buildkit |
COPY nginx.conf /etc/nginx/nginx.conf # buildkit |
COPY includes /etc/nginx/includes # buildkit |
RUN /bin/sh -c ln -sf /dev/stdout /var/log/nginx/access.log && ln -sf /dev/stderr /var/log/nginx/error.log ls /var/www ln -sf /usr/local/nginx /var/www # buildkit |
VOLUME [/etc/nginx/conf.d /etc/nginx/includes /var/www/html /var/cache/nginx] |
EXPOSE map[80/tcp:{}] |
CMD ["nginx" "-g" "daemon off;"] |