Dockerfile 885 B

12345678910111213141516171819202122232425262728293031323334
  1. FROM ubuntu:trusty
  2. RUN apt-get update && \
  3. apt-get upgrade -y && \
  4. apt-get install -y git-core build-essential wget
  5. RUN apt-get install -y --no-install-recommends autotools-dev libtool pkg-config zlib1g-dev libcunit1-dev libssl-dev libxml2-dev libevent-dev
  6. RUN cd /root && git clone https://github.com/tatsuhiro-t/nghttp2.git
  7. RUN apt-get install -y --no-install-recommends automake autoconf
  8. WORKDIR /root/nghttp2
  9. RUN autoreconf -i
  10. RUN automake
  11. RUN autoconf
  12. RUN ./configure
  13. RUN make
  14. RUN make install
  15. WORKDIR /root
  16. RUN wget http://curl.haxx.se/download/curl-7.38.0.tar.gz
  17. RUN tar -zxvf curl-7.38.0.tar.gz
  18. WORKDIR /root/curl-7.38.0
  19. ADD testdata/curl-http2-eof.patch /tmp/curl-http2-eof.patch
  20. RUN patch -p1 < /tmp/curl-http2-eof.patch
  21. RUN ./configure --with-ssl --with-nghttp2=/usr/local
  22. RUN make
  23. RUN make install
  24. RUN ldconfig
  25. CMD ["-h"]
  26. ENTRYPOINT ["/usr/local/bin/curl"]