mirror of
https://gitea.invidious.io/iv-org/litespeed-quic.git
synced 2024-08-15 00:53:43 +00:00
28 lines
747 B
Docker
28 lines
747 B
Docker
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 mkdir /src/lsquic
|
|
COPY ./ /src/lsquic/
|
|
|
|
RUN git clone https://boringssl.googlesource.com/boringssl && \
|
|
cd boringssl && \
|
|
git checkout a2278d4d2cabe73f6663e3299ea7808edfa306b9 && \
|
|
cmake . && \
|
|
make
|
|
|
|
RUN cd /src/lsquic && \
|
|
cmake -DBORINGSSL_DIR=/src/boringssl . && \
|
|
make
|
|
|
|
RUN cd lsquic && make test && cp bin/http_client /usr/bin/ && cp bin/http_server /usr/bin
|