Skip to content

Instantly share code, notes, and snippets.

@hnakamur
Created June 11, 2020 00:27
Show Gist options
  • Save hnakamur/720a818b574c5470557983e389d9bc27 to your computer and use it in GitHub Desktop.
Save hnakamur/720a818b574c5470557983e389d9bc27 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
@hnakamur
Copy link
Author

I also confirmed this with replacing FROM ubuntu:20.04 to FROM ubuntu:18.04

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