1
- FROM golang:1.22 -bookworm
1
+ FROM golang:1.24 -bookworm
2
2
3
- LABEL org.opencontainers.image.title="Unit (go1.22 )"
3
+ LABEL org.opencontainers.image.title="Unit (go1.24 )"
4
4
LABEL org.opencontainers.image.description="Official build of Unit for Docker."
5
5
LABEL org.opencontainers.image.url="https://unit.nginx.org"
6
6
LABEL org.opencontainers.image.source="https://github.com/nginx/unit"
7
7
LABEL org.opencontainers.image.documentation="https://unit.nginx.org/installation/#docker-images"
8
8
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"
10
10
11
11
RUN set -ex \
12
12
&& savedAptMark="$(apt-mark showmanual)" \
13
13
&& apt-get update \
14
14
&& 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 \
17
17
&& export RUSTUP_HOME=/usr/src/unit/rustup \
18
18
&& export CARGO_HOME=/usr/src/unit/cargo \
19
19
&& export PATH=/usr/src/unit/cargo/bin:$PATH \
@@ -35,7 +35,7 @@ RUN set -ex \
35
35
&& mkdir -p /usr/lib/unit/modules /usr/lib/unit/debug-modules \
36
36
&& mkdir -p /usr/src/unit \
37
37
&& 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 \
39
39
&& cd unit \
40
40
&& NCPU="$(getconf _NPROCESSORS_ONLN)" \
41
41
&& DEB_HOST_MULTIARCH="$(dpkg-architecture -q DEB_HOST_MULTIARCH)" \
@@ -55,7 +55,10 @@ RUN set -ex \
55
55
--libdir=/usr/lib/$DEB_HOST_MULTIARCH" \
56
56
&& CONFIGURE_ARGS="$CONFIGURE_ARGS_MODULES \
57
57
--njs \
58
- --otel" \
58
+ --otel \
59
+ --zlib \
60
+ --zstd \
61
+ --brotli" \
59
62
&& make -j $NCPU -C pkg/contrib .njs \
60
63
&& export PKG_CONFIG_PATH=$(pwd)/pkg/contrib/njs/build \
61
64
&& ./configure $CONFIGURE_ARGS --cc-opt="$CC_OPT" --ld-opt="$LD_OPT" --modulesdir=/usr/lib/unit/debug-modules --debug \
0 commit comments