Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 35 additions & 1 deletion runtime/base/base.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,39 @@ RUN set -xe; \
RUN set -xe; \
cmake --build . --target install

###############################################################################
# LIBNGHTTP2 Build
Comment thread
shouze marked this conversation as resolved.
# This adds support for HTTP 2 requests in curl.
# See https://github.com/brefphp/bref/issues/727 and https://github.com/brefphp/bref/pull/740
# # https://github.com/nghttp2/nghttp2/releases
# # Needs:
# # - zlib
# # - OpenSSL
# # Needed by:
# # - curl
ENV VERSION_NGHTTP2=1.41.0
ENV NGHTTP2_BUILD_DIR=${BUILD_DIR}/nghttp2

RUN set -xe; \
mkdir -p ${NGHTTP2_BUILD_DIR}; \
curl -Ls https://github.com/nghttp2/nghttp2/releases/download/v${VERSION_NGHTTP2}/nghttp2-${VERSION_NGHTTP2}.tar.gz \
| tar xzC ${NGHTTP2_BUILD_DIR} --strip-components=1

WORKDIR ${NGHTTP2_BUILD_DIR}/

RUN set -xe; \
&& CFLAGS="" \
CPPFLAGS="-I${INSTALL_DIR}/include -I/usr/include" \
LDFLAGS="-L${INSTALL_DIR}/lib64 -L${INSTALL_DIR}/lib" \
./configure \
--enable-lib-only \
--prefix=${INSTALL_DIR}


RUN set -xe; \
make install


###############################################################################
# CURL Build
# # https://github.com/curl/curl/releases/
Expand Down Expand Up @@ -244,7 +277,8 @@ RUN set -xe; \
--enable-cookies \
--with-gnu-ld \
--with-ssl \
--with-libssh2
--with-libssh2 \
--with-nghttp2


RUN set -xe; \
Expand Down