Dockerfile revision 4947ba95
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 49de1fc2910524c888866c7e2b0db1ba8af2a530 && \
21    cmake . && \
22    make
23
24RUN cd /src/lsquic && \
25    cmake -DBORINGSSL_DIR=/src/boringssl . && \
26    make
27
28RUN cd lsquic && make test && cp http_client /usr/bin/ && cp http_server /usr/bin
29