Skip to content

Commit

Permalink
changed: migration to GitHub and set specific branch for OpenSSL
Browse files Browse the repository at this point in the history
  • Loading branch information
ammnt committed Sep 8, 2024
1 parent 44355ea commit 713805a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ RUN NB_CORES="${BUILD_CORES-$(getconf _NPROCESSORS_CONF)}" \
libxslt \
libxslt-dev \
tini \
&& cd /tmp && git -v clone --recursive --depth 1 https://github.com/nginx/nginx.git \
&& cd /tmp && git -v clone https://github.com/nginx/nginx.git \
&& sed -i -e 's@"nginx/"@" "@g' /tmp/nginx/src/core/nginx.h \
&& sed -i -e 's@"nginx version: "@" "@g' /tmp/nginx/src/core/nginx.c \
&& sed -i -e 's@r->headers_out.server == NULL@0@g' /tmp/nginx/src/http/ngx_http_header_filter_module.c \
Expand All @@ -43,7 +43,7 @@ RUN NB_CORES="${BUILD_CORES-$(getconf _NPROCESSORS_CONF)}" \
&& sed -i -e '1i pid /tmp/nginx.pid;\n' /tmp/nginx/conf/nginx.conf \
&& sed -i -e 's/SSL_OP_CIPHER_SERVER_PREFERENCE);/SSL_OP_CIPHER_SERVER_PREFERENCE | SSL_OP_PRIORITIZE_CHACHA);/g' /tmp/nginx/src/event/ngx_event_openssl.c \
&& addgroup --gid 101 -S nginx && adduser -S nginx -s /sbin/nologin -G nginx --uid 101 --no-create-home \
&& git clone --recursive --depth 1 --single-branch -b $OPENSSL_BRANCH https://github.com/openssl/openssl.git && git clone https://github.com/nginx/njs.git \
&& git clone --depth 1 --single-branch -b $OPENSSL_BRANCH https://github.com/openssl/openssl.git && git clone https://github.com/nginx/njs.git \
&& cd /tmp/njs && ./configure && make -j "${NB_CORES}" && make clean \
&& mkdir /var/cache/nginx && cd /tmp/nginx && ./auto/configure \
--with-debug \
Expand Down

0 comments on commit 713805a

Please sign in to comment.