forked from litespeedtech/lsquic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
32 lines (26 loc) · 923 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
FROM ubuntu:16.04
RUN apt-get update && \
apt-get install -y build-essential git cmake software-properties-common \
zlib1g-dev libevent-dev
RUN add-apt-repository ppa:gophers/archive && \
apt-get update && \
apt-get install -y golang-1.9-go && \
cp /usr/lib/go-1.9/bin/go* /usr/bin/.
RUN mkdir /src
WORKDIR /src
RUN git clone https://boringssl.googlesource.com/boringssl && \
cd boringssl && \
git checkout chromium-stable && \
cmake . && \
make && \
BORINGSSL_SOURCE=$PWD && \
cd /usr/local/lib && \
cp $BORINGSSL_SOURCE/ssl/libssl.a . && \
cp $BORINGSSL_SOURCE/crypto/libcrypto.a .
RUN mkdir /src/lsquic-client
COPY ./ /src/lsquic-client/
RUN cd /src/lsquic-client && \
cmake -DBORINGSSL_INCLUDE=/src/boringssl/include \
-DBORINGSSL_LIB=/usr/local/lib . && \
make
RUN cd lsquic-client && make test && cp http_client /usr/bin/