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

Commit eba843e

Browse files
committed
pkg/docker: Update dockerfiles for 1.35.0
Remove Ruby 3.2 and add 3.4 Remove Golang 1.22 and 1.23, and add 1.24 and 1.25 Just use the main 1.35.0 tag as we aren't going to have a packaging one. Signed-off-by: Andrew Clayton <[email protected]>
1 parent 2409d0f commit eba843e

18 files changed

+144
-93
lines changed

pkg/docker/Dockerfile.go1.22 renamed to pkg/docker/Dockerfile.go1.24

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
FROM golang:1.22-bookworm
1+
FROM golang:1.24-bookworm
22

3-
LABEL org.opencontainers.image.title="Unit (go1.22)"
3+
LABEL org.opencontainers.image.title="Unit (go1.24)"
44
LABEL org.opencontainers.image.description="Official build of Unit for Docker."
55
LABEL org.opencontainers.image.url="https://unit.nginx.org"
66
LABEL org.opencontainers.image.source="https://github.com/nginx/unit"
77
LABEL org.opencontainers.image.documentation="https://unit.nginx.org/installation/#docker-images"
88
LABEL org.opencontainers.image.vendor="NGINX Docker Maintainers <[email protected]>"
9-
LABEL org.opencontainers.image.version="1.34.0"
9+
LABEL org.opencontainers.image.version="1.35.0"
1010

1111
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 \
16-
&& export RUST_VERSION=1.83.0 \
15+
ca-certificates git build-essential libssl-dev libpcre2-dev zlib1g-dev libzstd-dev libbrotli-dev curl pkg-config pkgconf libclang-dev cmake \
16+
&& export RUST_VERSION=1.89.0 \
1717
&& export RUSTUP_HOME=/usr/src/unit/rustup \
1818
&& export CARGO_HOME=/usr/src/unit/cargo \
1919
&& export PATH=/usr/src/unit/cargo/bin:$PATH \
@@ -35,7 +35,7 @@ RUN set -ex \
3535
&& mkdir -p /usr/lib/unit/modules /usr/lib/unit/debug-modules \
3636
&& mkdir -p /usr/src/unit \
3737
&& cd /usr/src/unit \
38-
&& git clone --depth 1 -b 1.34.0-1 https://github.com/nginx/unit \
38+
&& git clone --depth 1 -b 1.35.0 https://github.com/nginx/unit \
3939
&& cd unit \
4040
&& NCPU="$(getconf _NPROCESSORS_ONLN)" \
4141
&& DEB_HOST_MULTIARCH="$(dpkg-architecture -q DEB_HOST_MULTIARCH)" \
@@ -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 \

pkg/docker/Dockerfile.go1.23 renamed to pkg/docker/Dockerfile.go1.25

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
FROM golang:1.23-bookworm
1+
FROM golang:1.25-bookworm
22

3-
LABEL org.opencontainers.image.title="Unit (go1.23)"
3+
LABEL org.opencontainers.image.title="Unit (go1.25)"
44
LABEL org.opencontainers.image.description="Official build of Unit for Docker."
55
LABEL org.opencontainers.image.url="https://unit.nginx.org"
66
LABEL org.opencontainers.image.source="https://github.com/nginx/unit"
77
LABEL org.opencontainers.image.documentation="https://unit.nginx.org/installation/#docker-images"
88
LABEL org.opencontainers.image.vendor="NGINX Docker Maintainers <[email protected]>"
9-
LABEL org.opencontainers.image.version="1.34.0"
9+
LABEL org.opencontainers.image.version="1.35.0"
1010

1111
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 \
16-
&& export RUST_VERSION=1.83.0 \
15+
ca-certificates git build-essential libssl-dev libpcre2-dev zlib1g-dev libzstd-dev libbrotli-dev curl pkg-config pkgconf libclang-dev cmake \
16+
&& export RUST_VERSION=1.89.0 \
1717
&& export RUSTUP_HOME=/usr/src/unit/rustup \
1818
&& export CARGO_HOME=/usr/src/unit/cargo \
1919
&& export PATH=/usr/src/unit/cargo/bin:$PATH \
@@ -35,7 +35,7 @@ RUN set -ex \
3535
&& mkdir -p /usr/lib/unit/modules /usr/lib/unit/debug-modules \
3636
&& mkdir -p /usr/src/unit \
3737
&& cd /usr/src/unit \
38-
&& git clone --depth 1 -b 1.34.0-1 https://github.com/nginx/unit \
38+
&& git clone --depth 1 -b 1.35.0 https://github.com/nginx/unit \
3939
&& cd unit \
4040
&& NCPU="$(getconf _NPROCESSORS_ONLN)" \
4141
&& DEB_HOST_MULTIARCH="$(dpkg-architecture -q DEB_HOST_MULTIARCH)" \
@@ -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 \

pkg/docker/Dockerfile.jsc11

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ LABEL org.opencontainers.image.url="https://unit.nginx.org"
66
LABEL org.opencontainers.image.source="https://github.com/nginx/unit"
77
LABEL org.opencontainers.image.documentation="https://unit.nginx.org/installation/#docker-images"
88
LABEL org.opencontainers.image.vendor="NGINX Docker Maintainers <[email protected]>"
9-
LABEL org.opencontainers.image.version="1.34.0"
9+
LABEL org.opencontainers.image.version="1.35.0"
1010

1111
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 \
16-
&& export RUST_VERSION=1.83.0 \
15+
ca-certificates git build-essential libssl-dev libpcre2-dev zlib1g-dev libzstd-dev libbrotli-dev curl pkg-config pkgconf libclang-dev cmake \
16+
&& export RUST_VERSION=1.89.0 \
1717
&& export RUSTUP_HOME=/usr/src/unit/rustup \
1818
&& export CARGO_HOME=/usr/src/unit/cargo \
1919
&& export PATH=/usr/src/unit/cargo/bin:$PATH \
@@ -35,7 +35,7 @@ RUN set -ex \
3535
&& mkdir -p /usr/lib/unit/modules /usr/lib/unit/debug-modules \
3636
&& mkdir -p /usr/src/unit \
3737
&& cd /usr/src/unit \
38-
&& git clone --depth 1 -b 1.34.0-1 https://github.com/nginx/unit \
38+
&& git clone --depth 1 -b 1.35.0 https://github.com/nginx/unit \
3939
&& cd unit \
4040
&& NCPU="$(getconf _NPROCESSORS_ONLN)" \
4141
&& DEB_HOST_MULTIARCH="$(dpkg-architecture -q DEB_HOST_MULTIARCH)" \
@@ -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 \

pkg/docker/Dockerfile.minimal

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ LABEL org.opencontainers.image.url="https://unit.nginx.org"
66
LABEL org.opencontainers.image.source="https://github.com/nginx/unit"
77
LABEL org.opencontainers.image.documentation="https://unit.nginx.org/installation/#docker-images"
88
LABEL org.opencontainers.image.vendor="NGINX Docker Maintainers <[email protected]>"
9-
LABEL org.opencontainers.image.version="1.34.0"
9+
LABEL org.opencontainers.image.version="1.35.0"
1010

1111
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 \
16-
&& export RUST_VERSION=1.83.0 \
15+
ca-certificates git build-essential libssl-dev libpcre2-dev zlib1g-dev libzstd-dev libbrotli-dev curl pkg-config pkgconf libclang-dev cmake \
16+
&& export RUST_VERSION=1.89.0 \
1717
&& export RUSTUP_HOME=/usr/src/unit/rustup \
1818
&& export CARGO_HOME=/usr/src/unit/cargo \
1919
&& export PATH=/usr/src/unit/cargo/bin:$PATH \
@@ -35,7 +35,7 @@ RUN set -ex \
3535
&& mkdir -p /usr/lib/unit/modules /usr/lib/unit/debug-modules \
3636
&& mkdir -p /usr/src/unit \
3737
&& cd /usr/src/unit \
38-
&& git clone --depth 1 -b 1.34.0-1 https://github.com/nginx/unit \
38+
&& git clone --depth 1 -b 1.35.0 https://github.com/nginx/unit \
3939
&& cd unit \
4040
&& NCPU="$(getconf _NPROCESSORS_ONLN)" \
4141
&& DEB_HOST_MULTIARCH="$(dpkg-architecture -q DEB_HOST_MULTIARCH)" \
@@ -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 \

pkg/docker/Dockerfile.node20

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ LABEL org.opencontainers.image.url="https://unit.nginx.org"
66
LABEL org.opencontainers.image.source="https://github.com/nginx/unit"
77
LABEL org.opencontainers.image.documentation="https://unit.nginx.org/installation/#docker-images"
88
LABEL org.opencontainers.image.vendor="NGINX Docker Maintainers <[email protected]>"
9-
LABEL org.opencontainers.image.version="1.34.0"
9+
LABEL org.opencontainers.image.version="1.35.0"
1010

1111
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 \
16-
&& export RUST_VERSION=1.83.0 \
15+
ca-certificates git build-essential libssl-dev libpcre2-dev zlib1g-dev libzstd-dev libbrotli-dev curl pkg-config pkgconf libclang-dev cmake \
16+
&& export RUST_VERSION=1.89.0 \
1717
&& export RUSTUP_HOME=/usr/src/unit/rustup \
1818
&& export CARGO_HOME=/usr/src/unit/cargo \
1919
&& export PATH=/usr/src/unit/cargo/bin:$PATH \
@@ -35,7 +35,7 @@ RUN set -ex \
3535
&& mkdir -p /usr/lib/unit/modules /usr/lib/unit/debug-modules \
3636
&& mkdir -p /usr/src/unit \
3737
&& cd /usr/src/unit \
38-
&& git clone --depth 1 -b 1.34.0-1 https://github.com/nginx/unit \
38+
&& git clone --depth 1 -b 1.35.0 https://github.com/nginx/unit \
3939
&& cd unit \
4040
&& NCPU="$(getconf _NPROCESSORS_ONLN)" \
4141
&& DEB_HOST_MULTIARCH="$(dpkg-architecture -q DEB_HOST_MULTIARCH)" \
@@ -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 \

pkg/docker/Dockerfile.node22

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ LABEL org.opencontainers.image.url="https://unit.nginx.org"
66
LABEL org.opencontainers.image.source="https://github.com/nginx/unit"
77
LABEL org.opencontainers.image.documentation="https://unit.nginx.org/installation/#docker-images"
88
LABEL org.opencontainers.image.vendor="NGINX Docker Maintainers <[email protected]>"
9-
LABEL org.opencontainers.image.version="1.34.0"
9+
LABEL org.opencontainers.image.version="1.35.0"
1010

1111
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 \
16-
&& export RUST_VERSION=1.83.0 \
15+
ca-certificates git build-essential libssl-dev libpcre2-dev zlib1g-dev libzstd-dev libbrotli-dev curl pkg-config pkgconf libclang-dev cmake \
16+
&& export RUST_VERSION=1.89.0 \
1717
&& export RUSTUP_HOME=/usr/src/unit/rustup \
1818
&& export CARGO_HOME=/usr/src/unit/cargo \
1919
&& export PATH=/usr/src/unit/cargo/bin:$PATH \
@@ -35,7 +35,7 @@ RUN set -ex \
3535
&& mkdir -p /usr/lib/unit/modules /usr/lib/unit/debug-modules \
3636
&& mkdir -p /usr/src/unit \
3737
&& cd /usr/src/unit \
38-
&& git clone --depth 1 -b 1.34.0-1 https://github.com/nginx/unit \
38+
&& git clone --depth 1 -b 1.35.0 https://github.com/nginx/unit \
3939
&& cd unit \
4040
&& NCPU="$(getconf _NPROCESSORS_ONLN)" \
4141
&& DEB_HOST_MULTIARCH="$(dpkg-architecture -q DEB_HOST_MULTIARCH)" \
@@ -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 \

pkg/docker/Dockerfile.perl5.38

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ LABEL org.opencontainers.image.url="https://unit.nginx.org"
66
LABEL org.opencontainers.image.source="https://github.com/nginx/unit"
77
LABEL org.opencontainers.image.documentation="https://unit.nginx.org/installation/#docker-images"
88
LABEL org.opencontainers.image.vendor="NGINX Docker Maintainers <[email protected]>"
9-
LABEL org.opencontainers.image.version="1.34.0"
9+
LABEL org.opencontainers.image.version="1.35.0"
1010

1111
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 \
16-
&& export RUST_VERSION=1.83.0 \
15+
ca-certificates git build-essential libssl-dev libpcre2-dev zlib1g-dev libzstd-dev libbrotli-dev curl pkg-config pkgconf libclang-dev cmake \
16+
&& export RUST_VERSION=1.89.0 \
1717
&& export RUSTUP_HOME=/usr/src/unit/rustup \
1818
&& export CARGO_HOME=/usr/src/unit/cargo \
1919
&& export PATH=/usr/src/unit/cargo/bin:$PATH \
@@ -35,7 +35,7 @@ RUN set -ex \
3535
&& mkdir -p /usr/lib/unit/modules /usr/lib/unit/debug-modules \
3636
&& mkdir -p /usr/src/unit \
3737
&& cd /usr/src/unit \
38-
&& git clone --depth 1 -b 1.34.0-1 https://github.com/nginx/unit \
38+
&& git clone --depth 1 -b 1.35.0 https://github.com/nginx/unit \
3939
&& cd unit \
4040
&& NCPU="$(getconf _NPROCESSORS_ONLN)" \
4141
&& DEB_HOST_MULTIARCH="$(dpkg-architecture -q DEB_HOST_MULTIARCH)" \
@@ -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 \

pkg/docker/Dockerfile.perl5.40

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ LABEL org.opencontainers.image.url="https://unit.nginx.org"
66
LABEL org.opencontainers.image.source="https://github.com/nginx/unit"
77
LABEL org.opencontainers.image.documentation="https://unit.nginx.org/installation/#docker-images"
88
LABEL org.opencontainers.image.vendor="NGINX Docker Maintainers <[email protected]>"
9-
LABEL org.opencontainers.image.version="1.34.0"
9+
LABEL org.opencontainers.image.version="1.35.0"
1010

1111
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 \
16-
&& export RUST_VERSION=1.83.0 \
15+
ca-certificates git build-essential libssl-dev libpcre2-dev zlib1g-dev libzstd-dev libbrotli-dev curl pkg-config pkgconf libclang-dev cmake \
16+
&& export RUST_VERSION=1.89.0 \
1717
&& export RUSTUP_HOME=/usr/src/unit/rustup \
1818
&& export CARGO_HOME=/usr/src/unit/cargo \
1919
&& export PATH=/usr/src/unit/cargo/bin:$PATH \
@@ -35,7 +35,7 @@ RUN set -ex \
3535
&& mkdir -p /usr/lib/unit/modules /usr/lib/unit/debug-modules \
3636
&& mkdir -p /usr/src/unit \
3737
&& cd /usr/src/unit \
38-
&& git clone --depth 1 -b 1.34.0-1 https://github.com/nginx/unit \
38+
&& git clone --depth 1 -b 1.35.0 https://github.com/nginx/unit \
3939
&& cd unit \
4040
&& NCPU="$(getconf _NPROCESSORS_ONLN)" \
4141
&& DEB_HOST_MULTIARCH="$(dpkg-architecture -q DEB_HOST_MULTIARCH)" \
@@ -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 \

pkg/docker/Dockerfile.php8.3

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ LABEL org.opencontainers.image.url="https://unit.nginx.org"
66
LABEL org.opencontainers.image.source="https://github.com/nginx/unit"
77
LABEL org.opencontainers.image.documentation="https://unit.nginx.org/installation/#docker-images"
88
LABEL org.opencontainers.image.vendor="NGINX Docker Maintainers <[email protected]>"
9-
LABEL org.opencontainers.image.version="1.34.0"
9+
LABEL org.opencontainers.image.version="1.35.0"
1010

1111
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 \
16-
&& export RUST_VERSION=1.83.0 \
15+
ca-certificates git build-essential libssl-dev libpcre2-dev zlib1g-dev libzstd-dev libbrotli-dev curl pkg-config pkgconf libclang-dev cmake \
16+
&& export RUST_VERSION=1.89.0 \
1717
&& export RUSTUP_HOME=/usr/src/unit/rustup \
1818
&& export CARGO_HOME=/usr/src/unit/cargo \
1919
&& export PATH=/usr/src/unit/cargo/bin:$PATH \
@@ -35,7 +35,7 @@ RUN set -ex \
3535
&& mkdir -p /usr/lib/unit/modules /usr/lib/unit/debug-modules \
3636
&& mkdir -p /usr/src/unit \
3737
&& cd /usr/src/unit \
38-
&& git clone --depth 1 -b 1.34.0-1 https://github.com/nginx/unit \
38+
&& git clone --depth 1 -b 1.35.0 https://github.com/nginx/unit \
3939
&& cd unit \
4040
&& NCPU="$(getconf _NPROCESSORS_ONLN)" \
4141
&& DEB_HOST_MULTIARCH="$(dpkg-architecture -q DEB_HOST_MULTIARCH)" \
@@ -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)