145d75bb2SBrian ProdoehlFROM ubuntu:16.04 245d75bb2SBrian Prodoehl 345d75bb2SBrian ProdoehlRUN apt-get update && \ 445d75bb2SBrian Prodoehl apt-get install -y build-essential git cmake software-properties-common \ 545d75bb2SBrian Prodoehl zlib1g-dev libevent-dev 645d75bb2SBrian Prodoehl 745d75bb2SBrian ProdoehlRUN add-apt-repository ppa:gophers/archive && \ 845d75bb2SBrian Prodoehl apt-get update && \ 945d75bb2SBrian Prodoehl apt-get install -y golang-1.9-go && \ 1045d75bb2SBrian Prodoehl cp /usr/lib/go-1.9/bin/go* /usr/bin/. 1145d75bb2SBrian Prodoehl 1245d75bb2SBrian ProdoehlRUN mkdir /src 1345d75bb2SBrian ProdoehlWORKDIR /src 1445d75bb2SBrian Prodoehl 1527187418SLiteSpeed TechRUN mkdir /src/lsquic 1627187418SLiteSpeed TechCOPY ./ /src/lsquic/ 1727187418SLiteSpeed Tech 1845d75bb2SBrian ProdoehlRUN git clone https://boringssl.googlesource.com/boringssl && \ 1945d75bb2SBrian Prodoehl cd boringssl && \ 2026e8f082SDmitri Tikhonov git checkout a2278d4d2cabe73f6663e3299ea7808edfa306b9 && \ 2145d75bb2SBrian Prodoehl cmake . && \ 2227187418SLiteSpeed Tech make 2345d75bb2SBrian Prodoehl 2427187418SLiteSpeed TechRUN cd /src/lsquic && \ 2527187418SLiteSpeed Tech cmake -DBORINGSSL_DIR=/src/boringssl . && \ 2645d75bb2SBrian Prodoehl make 2745d75bb2SBrian Prodoehl 281e0dbec4SMichał ŚledźRUN cd lsquic && make test && cp bin/http_client /usr/bin/ && cp bin/http_server /usr/bin 29