Dockerfile revision 45d75bb2
1FROM ubuntu:16.04 2 3RUN apt-get update && \ 4 apt-get install -y build-essential git cmake software-properties-common \ 5 zlib1g-dev libevent-dev 6 7RUN add-apt-repository ppa:gophers/archive && \ 8 apt-get update && \ 9 apt-get install -y golang-1.9-go && \ 10 cp /usr/lib/go-1.9/bin/go* /usr/bin/. 11 12RUN mkdir /src 13WORKDIR /src 14 15RUN git clone https://boringssl.googlesource.com/boringssl && \ 16 cd boringssl && \ 17 git checkout chromium-stable && \ 18 cmake . && \ 19 make && \ 20 BORINGSSL_SOURCE=$PWD && \ 21 cd /usr/local/lib && \ 22 cp $BORINGSSL_SOURCE/ssl/libssl.a . && \ 23 cp $BORINGSSL_SOURCE/crypto/libcrypto.a . 24 25RUN mkdir /src/lsquic-client 26COPY ./ /src/lsquic-client/ 27RUN cd /src/lsquic-client && \ 28 cmake -DBORINGSSL_INCLUDE=/src/boringssl/include \ 29 -DBORINGSSL_LIB=/usr/local/lib . && \ 30 make 31 32RUN cd lsquic-client && make test && cp http_client /usr/bin/ 33