-
-
Save Franetse7/fd8a06fc43d606b7039fd941463880fe to your computer and use it in GitHub Desktop.
NGINX + OpenSSL 3.0
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM nginx AS build | |
WORKDIR /src | |
RUN apt-get update && \ | |
apt-get install -y git gcc make mercurial libperl-dev libpcre3-dev zlib1g-dev libxslt1-dev libgd-ocaml-dev libgeoip-dev | |
RUN git clone -b openssl-3.0 https://github.com/openssl/openssl openssl-3.0 && \ | |
hg clone https://hg.nginx.org/nginx && \ | |
hg clone http://hg.nginx.org/njs | |
RUN cd nginx && \ | |
auto/configure `nginx -V 2>&1 | sed "s/ \-\-/ \\\ \n\t--/g" | grep \-\- | grep -ve opt= -e param=` \ | |
--with-openssl=../openssl-3.0 --with-debug --add-module=../njs/nginx && \ | |
make | |
FROM nginx | |
COPY --from=build /src/nginx/objs/nginx /usr/sbin |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Excellent congrats