From 0b1a5aba97aa928abbead6eabf1ba1d923b3c45b Mon Sep 17 00:00:00 2001 From: TeKrop Date: Sun, 23 Jun 2024 23:59:49 +0200 Subject: [PATCH] feat: updated nginx version to latest, and using custom ngx_http_redis version with fix for nginx >= 1.23 --- build/nginx/Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/build/nginx/Dockerfile b/build/nginx/Dockerfile index 45ccd3c..de4fb13 100644 --- a/build/nginx/Dockerfile +++ b/build/nginx/Dockerfile @@ -1,6 +1,6 @@ # Build arguments -ARG NGINX_VERSION=1.20.2 -ARG NGX_HTTP_REDIS_VERSION=0.3.8 +ARG NGINX_VERSION=1.27.0 +ARG NGX_HTTP_REDIS_VERSION=0.3.9 FROM nginx:${NGINX_VERSION}-alpine @@ -17,8 +17,8 @@ COPY overfast-api.conf /etc/nginx/conf.d/default.conf # Download nginx and ngx_http_redis sources RUN wget https://nginx.org/download/nginx-$NGINX_VERSION.tar.gz && \ tar -xzvf nginx-$NGINX_VERSION.tar.gz && \ - wget http://people.freebsd.org/~osa/ngx_http_redis-$NGX_HTTP_REDIS_VERSION.tar.gz && \ - tar -xzvf ngx_http_redis-$NGX_HTTP_REDIS_VERSION.tar.gz + wget https://github.com/TeKrop/ngx_http_redis/archive/refs/tags/v$NGX_HTTP_REDIS_VERSION.tar.gz && \ + tar -xzvf v$NGX_HTTP_REDIS_VERSION.tar.gz # Download build dependencies RUN apk add build-base linux-headers pcre-dev openssl-dev zlib-dev