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 713805a commit 89a8e76
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
ARG OPENSSL_BRANCH="openssl-3.3"

FROM docker.io/library/alpine:latest
RUN NB_CORES="${BUILD_CORES-$(getconf _NPROCESSORS_CONF)}" \
&& apk -U upgrade && apk add --no-cache \
Expand Down Expand Up @@ -28,7 +26,7 @@ RUN NB_CORES="${BUILD_CORES-$(getconf _NPROCESSORS_CONF)}" \
libxslt \
libxslt-dev \
tini \
&& cd /tmp && git -v clone https://github.com/nginx/nginx.git \
&& cd /tmp && git clone https://github.com/nginx/nginx \
&& 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 +41,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 --depth 1 --single-branch -b $OPENSSL_BRANCH https://github.com/openssl/openssl.git && git clone https://github.com/nginx/njs.git \
&& git clone --recursive --depth 1 --single-branch -b openssl-3.3 https://github.com/openssl/openssl && git clone https://github.com/nginx/njs \
&& 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 89a8e76

Please sign in to comment.