litespeed-quic/Dockerfile

30 lines
802 B
Docker
Raw Normal View History

2017-10-03 19:33:09 +00:00
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
2019-09-16 14:17:30 +00:00
RUN mkdir /src/lsquic
COPY ./ /src/lsquic/
2017-10-03 19:33:09 +00:00
RUN git clone https://boringssl.googlesource.com/boringssl && \
cd boringssl && \
2019-09-16 14:17:30 +00:00
git checkout 32e59d2d3264e4e104b355ef73663b8b79ac4093 && \
patch -p1 -i /src/lsquic/patches/boringssl-meds.patch && \
2017-10-03 19:33:09 +00:00
cmake . && \
2019-09-16 14:17:30 +00:00
make
2017-10-03 19:33:09 +00:00
2019-09-16 14:17:30 +00:00
RUN cd /src/lsquic && \
cmake -DBORINGSSL_DIR=/src/boringssl . && \
2017-10-03 19:33:09 +00:00
make
2019-09-16 14:17:30 +00:00
RUN cd lsquic && make test && cp http_client /usr/bin/ && cp http_server /usr/bin