Dockerfile revision cb1e8c10
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 b117a3a0b7bd11fe6ebd503ec6b45d6b910b41a1 && \
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