@@ -9,6 +9,24 @@ RUN mkdir -p "$HTTPD_PREFIX" \
99 && chown www-data:www-data "$HTTPD_PREFIX"
1010WORKDIR $HTTPD_PREFIX
1111
12+ # library for mod_http2
13+ ENV NGHTTP2_VERSION 1.16.0-1
14+ RUN { \
15+ echo 'deb http://deb.debian.org/debian stretch main' ; \
16+ } > /etc/apt/sources.list.d/stretch.list \
17+ && { \
18+ # add a negative "Pin-Priority" so that we never ever get packages from stretch unless we explicitly request them
19+ echo 'Package: *' ; \
20+ echo 'Pin: release n=stretch' ; \
21+ echo 'Pin-Priority: -10' ; \
22+ echo; \
23+ # except nghttp2, which is the reason we're here
24+ echo 'Package: libnghttp2*' ; \
25+ echo "Pin: version $NGHTTP2_VERSION" ; \
26+ echo 'Pin-Priority: 990' ; \
27+ echo; \
28+ } > /etc/apt/preferences.d/unstable-nghttp2
29+
1230# install httpd runtime dependencies
1331# https://httpd.apache.org/docs/2.4/install.html#requirements
1432RUN apt-get update \
@@ -18,8 +36,11 @@ RUN apt-get update \
1836 libaprutil1-ldap \
1937 libapr1-dev \
2038 libaprutil1-dev \
39+ liblua5.2-0 \
40+ libnghttp2-14=$NGHTTP2_VERSION \
2141 libpcre++0 \
2242 libssl1.0.0 \
43+ libxml2 \
2344 && rm -r /var/lib/apt/lists/*
2445
2546ENV HTTPD_VERSION 2.4.23
@@ -32,17 +53,23 @@ ENV HTTPD_ASC_URL https://www.apache.org/dist/httpd/httpd-$HTTPD_VERSION.tar.bz2
3253
3354# see https://httpd.apache.org/docs/2.4/install.html#requirements
3455RUN set -x \
35- && buildDeps=' \
56+ # mod_http2 mod_lua mod_proxy_html mod_xml2enc
57+ # https://anonscm.debian.org/cgit/pkg-apache/apache2.git/tree/debian/control?id=adb6f181257af28ee67af15fc49d2699a0080d4c
58+ && buildDeps=" \
3659 bzip2 \
3760 ca-certificates \
3861 gcc \
62+ libnghttp2-dev=$NGHTTP2_VERSION \
63+ liblua5.2-dev \
3964 libpcre++-dev \
4065 libssl-dev \
66+ libxml2-dev \
67+ zlib1g-dev \
4168 make \
4269 wget \
43- ' \
70+ " \
4471 && apt-get update \
45- && apt-get install -y --no-install-recommends $buildDeps \
72+ && apt-get install -y --no-install-recommends -V $buildDeps \
4673 && rm -r /var/lib/apt/lists/* \
4774 \
4875 && wget -O httpd.tar.bz2 "$HTTPD_BZ2_URL" \
@@ -55,7 +82,7 @@ RUN set -x \
5582 && rm -r "$GNUPGHOME" httpd.tar.bz2.asc \
5683 \
5784 && mkdir -p src \
58- && tar -xvf httpd.tar.bz2 -C src --strip-components=1 \
85+ && tar -xf httpd.tar.bz2 -C src --strip-components=1 \
5986 && rm httpd.tar.bz2 \
6087 && cd src \
6188 \
0 commit comments