github.com/blixtra/rkt@v0.8.1-0.20160204105720-ab0d1add1a43/Godeps/_workspace/src/golang.org/x/net/http2/Dockerfile (about)

     1  #
     2  # This Dockerfile builds a recent curl with HTTP/2 client support, using
     3  # a recent nghttp2 build.
     4  #
     5  # See the Makefile for how to tag it. If Docker and that image is found, the
     6  # Go tests use this curl binary for integration tests.
     7  #
     8  
     9  FROM ubuntu:trusty
    10  
    11  RUN apt-get update && \
    12      apt-get upgrade -y && \
    13      apt-get install -y git-core build-essential wget
    14  
    15  RUN apt-get install -y --no-install-recommends \
    16         autotools-dev libtool pkg-config zlib1g-dev \
    17         libcunit1-dev libssl-dev libxml2-dev libevent-dev \
    18         automake autoconf
    19  
    20  # Note: setting NGHTTP2_VER before the git clone, so an old git clone isn't cached:
    21  ENV NGHTTP2_VER af24f8394e43f4
    22  RUN cd /root && git clone https://github.com/tatsuhiro-t/nghttp2.git
    23  
    24  WORKDIR /root/nghttp2
    25  RUN git reset --hard $NGHTTP2_VER
    26  RUN autoreconf -i
    27  RUN automake
    28  RUN autoconf
    29  RUN ./configure
    30  RUN make
    31  RUN make install
    32  
    33  WORKDIR /root
    34  RUN wget http://curl.haxx.se/download/curl-7.40.0.tar.gz
    35  RUN tar -zxvf curl-7.40.0.tar.gz
    36  WORKDIR /root/curl-7.40.0
    37  RUN ./configure --with-ssl --with-nghttp2=/usr/local
    38  RUN make
    39  RUN make install
    40  RUN ldconfig
    41  
    42  CMD ["-h"]
    43  ENTRYPOINT ["/usr/local/bin/curl"]
    44