Dockerfile revision 1e0dbec4
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 mkdir /src/lsquic 16COPY ./ /src/lsquic/ 17 18RUN git clone https://boringssl.googlesource.com/boringssl && \ 19 cd boringssl && \ 20 git checkout a2278d4d2cabe73f6663e3299ea7808edfa306b9 && \ 21 cmake . && \ 22 make 23 24RUN cd /src/lsquic && \ 25 cmake -DBORINGSSL_DIR=/src/boringssl . && \ 26 make 27 28RUN cd lsquic && make test && cp bin/http_client /usr/bin/ && cp bin/http_server /usr/bin 29