Skip to content

Instantly share code, notes, and snippets.

@bendo01
Forked from hnakamur/Dockerfile
Created April 24, 2021 14:53
Show Gist options
  • Save bendo01/090bddb279146489afdc95c85ea51a8d to your computer and use it in GitHub Desktop.
Save bendo01/090bddb279146489afdc95c85ea51a8d to your computer and use it in GitHub Desktop.
Dockefile to build nginx-quic with BoringSSL on Ubuntu 20.04 LTS
FROM ubuntu:20.04
RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get -y install git mercurial build-essential cmake ninja-build golang-go zlib1g-dev libpcre3-dev
RUN git clone https://github.com/google/boringssl \
&& cd boringssl \
&& mkdir build \
&& cd build \
&& cmake -GNinja .. \
&& ninja
RUN hg clone https://hg.nginx.org/nginx-quic \
&& cd nginx-quic \
&& hg update quic \
&& ./auto/configure \
--with-debug \
--with-http_v3_module \
--with-cc-opt="-I../boringssl/include" \
--with-ld-opt="-L../boringssl/build/ssl \
-L../boringssl/build/crypto" \
&& make
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment