Skip to content

Instantly share code, notes, and snippets.

@Fudoshiki
Forked from nginx-gists/Dockerfile
Created July 15, 2021 20:25
Show Gist options
  • Save Fudoshiki/dc72877be69df8b6c9aa0debbd54516d to your computer and use it in GitHub Desktop.
Save Fudoshiki/dc72877be69df8b6c9aa0debbd54516d to your computer and use it in GitHub Desktop.
Our Roadmap for QUIC and HTTP3 Support in NGINX
FROM nginx AS build
WORKDIR /src
RUN apt-get update && \
apt-get install -y git gcc make g++ cmake perl libunwind-dev golang && \
git clone https://boringssl.googlesource.com/boringssl && \
mkdir boringssl/build && \
cd boringssl/build && \
cmake .. && \
make
RUN apt-get install -y mercurial libperl-dev libpcre3-dev zlib1g-dev libxslt1-dev libgd-ocaml-dev libgeoip-dev && \
hg clone https://hg.nginx.org/nginx-quic && \
hg clone http://hg.nginx.org/njs && \
cd nginx-quic && \
hg update quic && \
auto/configure `nginx -V 2>&1 | sed "s/ \-\-/ \\\ \n\t--/g" | grep "\-\-" | grep -ve opt= -e param= -e build=` \
--build=nginx-quic --with-debug --add-module=../njs/nginx \
--with-http_v3_module --with-http_quic_module --with-stream_quic_module \
--with-cc-opt="-I/src/boringssl/include" --with-ld-opt="-L/src/boringssl/build/ssl -L/src/boringssl/build/crypto" && \
make
FROM nginx
COPY --from=build /src/nginx-quic/objs/nginx /usr/sbin
RUN /usr/sbin/nginx -V > /dev/stderr
EXPOSE 80 443
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment