Dockerfile revision 27187418
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 32e59d2d3264e4e104b355ef73663b8b79ac4093 && \
21    patch -p1 -i /src/lsquic/patches/boringssl-meds.patch && \
22    cmake . && \
23    make
24
25RUN cd /src/lsquic && \
26    cmake -DBORINGSSL_DIR=/src/boringssl . && \
27    make
28
29RUN cd lsquic && make test && cp http_client /usr/bin/ && cp http_server /usr/bin
30