Skip to content

Instantly share code, notes, and snippets.

@Franetse7
Forked from lcrilly/Dockerfile
Created September 10, 2021 17:01
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Franetse7/fd8a06fc43d606b7039fd941463880fe to your computer and use it in GitHub Desktop.
Save Franetse7/fd8a06fc43d606b7039fd941463880fe to your computer and use it in GitHub Desktop.
NGINX + OpenSSL 3.0
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
@Franetse7
Copy link
Author

Excellent congrats

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment