2016-11-26 05:50:26 +00:00
|
|
|
FROM alpine
|
|
|
|
|
|
|
|
RUN apk add --update \
|
|
|
|
git \
|
|
|
|
cmake \
|
|
|
|
build-base \
|
|
|
|
openssl-dev \
|
|
|
|
bash \
|
|
|
|
&& rm -rf /var/cache/apk/*
|
|
|
|
|
|
|
|
RUN git clone https://github.com/h2o/picotls
|
|
|
|
|
2017-11-14 15:43:14 +00:00
|
|
|
# Draft -18
|
|
|
|
#ARG REVISION=a6c1c65
|
|
|
|
|
|
|
|
# Draft -22
|
|
|
|
ARG REVISION=843ccdc
|
|
|
|
|
2016-11-26 05:50:26 +00:00
|
|
|
RUN cd picotls && git fetch && git checkout $REVISION
|
|
|
|
|
|
|
|
RUN cd picotls && git submodule update --init
|
|
|
|
RUN cd picotls && cmake . && make
|
|
|
|
|
|
|
|
ADD httpreq.txt /httpreq.txt
|
|
|
|
ADD run.sh /run.sh
|
|
|
|
ENTRYPOINT ["/run.sh"]
|