Skip to content
This repository was archived by the owner on Oct 8, 2025. It is now read-only.

Commit 2409d0f

Browse files
committed
pkg/docker: Enable zlib. zstd and brotli compression
Install the required libraries, it also requires pkgconf. Signed-off-by: Andrew Clayton <[email protected]>
1 parent b06ec78 commit 2409d0f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

pkg/docker/template.Dockerfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ RUN set -ex \
1212
&& savedAptMark="$(apt-mark showmanual)" \
1313
&& apt-get update \
1414
&& apt-get install --no-install-recommends --no-install-suggests -y \
15-
ca-certificates git build-essential libssl-dev libpcre2-dev curl pkg-config libclang-dev cmake \
15+
ca-certificates git build-essential libssl-dev libpcre2-dev zlib1g-dev libzstd-dev libbrotli-dev curl pkg-config pkgconf libclang-dev cmake \
1616
&& export RUST_VERSION=1.89.0 \
1717
&& export RUSTUP_HOME=/usr/src/unit/rustup \
1818
&& export CARGO_HOME=/usr/src/unit/cargo \
@@ -55,7 +55,10 @@ RUN set -ex \
5555
--libdir=/usr/lib/$DEB_HOST_MULTIARCH" \
5656
&& CONFIGURE_ARGS="$CONFIGURE_ARGS_MODULES \
5757
--njs \
58-
--otel" \
58+
--otel \
59+
--zlib \
60+
--zstd \
61+
--brotli" \
5962
&& make -j $NCPU -C pkg/contrib .njs \
6063
&& export PKG_CONFIG_PATH=$(pwd)/pkg/contrib/njs/build \
6164
&& ./configure $CONFIGURE_ARGS --cc-opt="$CC_OPT" --ld-opt="$LD_OPT" --modulesdir=/usr/lib/unit/debug-modules --debug \

0 commit comments

Comments
 (0)