Skip to content

Commit bbefca2

Browse files
Docker: Mount rust from image at build time instead of downloading it
This ensures that rust is not left behind in the image
1 parent 706b994 commit bbefca2

21 files changed

+388
-524
lines changed

Diff for: pkg/docker/Dockerfile.base

+91
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
FROM rust:1.83.0-bookworm AS build
2+
3+
RUN set -ex \
4+
&& savedAptMark="$(apt-mark showmanual)" \
5+
&& apt-get update \
6+
&& apt-get install --no-install-recommends --no-install-suggests -y \
7+
ca-certificates git build-essential libssl-dev libpcre2-dev curl pkg-config libclang-dev cmake \
8+
&& mkdir -p /usr/src/unit \
9+
&& cd /usr/src/unit \
10+
&& git clone --depth 1 -b 1.34.0-1 https://github.com/nginx/unit \
11+
&& cd unit \
12+
&& NCPU="$(getconf _NPROCESSORS_ONLN)" \
13+
&& DEB_HOST_MULTIARCH="$(dpkg-architecture -q DEB_HOST_MULTIARCH)" \
14+
&& CC_OPT="$(DEB_BUILD_MAINT_OPTIONS="hardening=+all,-pie" DEB_CFLAGS_MAINT_APPEND="-Wp,-D_FORTIFY_SOURCE=2 -fPIC" dpkg-buildflags --get CFLAGS)" \
15+
&& LD_OPT="$(DEB_BUILD_MAINT_OPTIONS="hardening=+all,-pie" DEB_LDFLAGS_MAINT_APPEND="-Wl,--as-needed -pie" dpkg-buildflags --get LDFLAGS)" \
16+
&& CONFIGURE_ARGS_MODULES="--prefix=/usr \
17+
--statedir=/var/lib/unit \
18+
--control=unix:/var/run/control.unit.sock \
19+
--runstatedir=/var/run \
20+
--pid=/var/run/unit.pid \
21+
--logdir=/var/log \
22+
--log=/var/log/unit.log \
23+
--tmpdir=/var/tmp \
24+
--user=unit \
25+
--group=unit \
26+
--openssl \
27+
--libdir=/usr/lib/$DEB_HOST_MULTIARCH" \
28+
&& CONFIGURE_ARGS="$CONFIGURE_ARGS_MODULES \
29+
--njs \
30+
--otel" \
31+
&& make -j $NCPU -C pkg/contrib .njs \
32+
&& export PKG_CONFIG_PATH=$(pwd)/pkg/contrib/njs/build \
33+
&& ./configure $CONFIGURE_ARGS --cc-opt="$CC_OPT" --ld-opt="$LD_OPT" --modulesdir=/usr/lib/unit/debug-modules --debug \
34+
&& make -j $NCPU unitd \
35+
&& install -pm755 build/sbin/unitd /usr/sbin/unitd-debug \
36+
&& make clean \
37+
&& ./configure $CONFIGURE_ARGS --cc-opt="$CC_OPT" --ld-opt="$LD_OPT" --modulesdir=/usr/lib/unit/modules \
38+
&& make -j $NCPU unitd \
39+
&& install -pm755 build/sbin/unitd /usr/sbin/unitd \
40+
&& install -pm644 build/lib/libnxt.a /usr/lib/libnxt.a \
41+
&& make clean \
42+
&& cd \
43+
&& rm -rf /usr/src/unit \
44+
&& apt-mark showmanual | xargs apt-mark auto > /dev/null \
45+
&& { [ -z "$savedAptMark" ] || apt-mark manual $savedAptMark; }
46+
47+
FROM debian:bookworm-slim
48+
49+
LABEL org.opencontainers.image.title="Unit (base)"
50+
LABEL org.opencontainers.image.description="Official build of Unit for Docker."
51+
LABEL org.opencontainers.image.url="https://unit.nginx.org"
52+
LABEL org.opencontainers.image.source="https://github.com/nginx/unit"
53+
LABEL org.opencontainers.image.documentation="https://unit.nginx.org/installation/#docker-images"
54+
LABEL org.opencontainers.image.vendor="NGINX Docker Maintainers <[email protected]>"
55+
LABEL org.opencontainers.image.version="1.34.0"
56+
57+
RUN set -ex \
58+
&& mkdir -p /var/lib/unit/ \
59+
&& mkdir -p /docker-entrypoint.d/ \
60+
&& groupadd --gid 999 unit \
61+
&& useradd \
62+
--uid 999 \
63+
--gid unit \
64+
--no-create-home \
65+
--home /nonexistent \
66+
--comment "unit user" \
67+
--shell /bin/false \
68+
unit \
69+
&& ln -sf /dev/stderr /var/log/unit.log
70+
71+
COPY --from=build /usr/sbin/unitd* /usr/sbin/
72+
COPY --from=build /usr/lib/libnxt.a /usr/lib/libnxt.a
73+
74+
RUN set -ex \
75+
&& for f in /usr/sbin/unitd /usr/lib/unit/modules/*.unit.so; do \
76+
ldd $f | awk '/=>/{print $(NF-1)}' | while read n; do dpkg-query -S $n; done | sed 's/^\([^:]\+\):.*$/\1/' | sort | uniq >> /requirements.apt; \
77+
done \
78+
&& apt-get update \
79+
&& apt-get --no-install-recommends --no-install-suggests -y install curl $(cat /requirements.apt) \
80+
&& apt-get purge -y --auto-remove build-essential \
81+
&& rm -rf /var/lib/apt/lists/* \
82+
&& rm -f /requirements.apt
83+
84+
COPY docker-entrypoint.sh /usr/local/bin/
85+
COPY welcome.* /usr/share/unit/welcome/
86+
87+
STOPSIGNAL SIGTERM
88+
89+
ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]
90+
EXPOSE 80
91+
CMD ["unitd", "--no-daemon", "--control", "unix:/var/run/control.unit.sock"]

Diff for: pkg/docker/Dockerfile.go1.22

+11-29
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
FROM rust:1.83.0-bookworm AS rust-build
2+
13
FROM golang:1.22-bookworm
24

35
LABEL org.opencontainers.image.title="Unit (go1.22)"
@@ -8,30 +10,18 @@ LABEL org.opencontainers.image.documentation="https://unit.nginx.org/installatio
810
LABEL org.opencontainers.image.vendor="NGINX Docker Maintainers <[email protected]>"
911
LABEL org.opencontainers.image.version="1.34.0"
1012

11-
RUN set -ex \
13+
COPY --from=unit:1.34.0-base /usr/sbin/unitd* /usr/sbin/
14+
COPY --from=unit:1.34.0-base /usr/lib/libnxt.a /usr/lib/libnxt.a
15+
16+
RUN --mount=type=bind,target=/rust,from=rust-build,rw \
17+
set -ex \
1218
&& savedAptMark="$(apt-mark showmanual)" \
1319
&& apt-get update \
1420
&& apt-get install --no-install-recommends --no-install-suggests -y \
1521
ca-certificates git build-essential libssl-dev libpcre2-dev curl pkg-config libclang-dev cmake \
16-
&& export RUST_VERSION=1.83.0 \
17-
&& export RUSTUP_HOME=/usr/src/unit/rustup \
18-
&& export CARGO_HOME=/usr/src/unit/cargo \
19-
&& export PATH=/usr/src/unit/cargo/bin:$PATH \
20-
&& dpkgArch="$(dpkg --print-architecture)" \
21-
&& case "${dpkgArch##*-}" in \
22-
amd64) rustArch="x86_64-unknown-linux-gnu"; rustupSha256="6aeece6993e902708983b209d04c0d1dbb14ebb405ddb87def578d41f920f56d" ;; \
23-
arm64) rustArch="aarch64-unknown-linux-gnu"; rustupSha256="1cffbf51e63e634c746f741de50649bbbcbd9dbe1de363c9ecef64e278dba2b2" ;; \
24-
*) echo >&2 "unsupported architecture: ${dpkgArch}"; exit 1 ;; \
25-
esac \
26-
&& url="https://static.rust-lang.org/rustup/archive/1.27.1/${rustArch}/rustup-init" \
27-
&& curl -L -O "$url" \
28-
&& echo "${rustupSha256} *rustup-init" | sha256sum -c - \
29-
&& chmod +x rustup-init \
30-
&& ./rustup-init -y --no-modify-path --profile minimal --default-toolchain $RUST_VERSION --default-host ${rustArch} \
31-
&& rm rustup-init \
32-
&& rustup --version \
33-
&& cargo --version \
34-
&& rustc --version \
22+
&& export RUSTUP_HOME=/rust/usr/src/unit/rustup \
23+
&& export CARGO_HOME=/rust/usr/src/unit/cargo \
24+
&& export PATH=/rust/usr/local/cargo/bin/:$PATH \
3525
&& mkdir -p /usr/lib/unit/modules /usr/lib/unit/debug-modules \
3626
&& mkdir -p /usr/src/unit \
3727
&& cd /usr/src/unit \
@@ -58,14 +48,6 @@ RUN set -ex \
5848
--otel" \
5949
&& make -j $NCPU -C pkg/contrib .njs \
6050
&& export PKG_CONFIG_PATH=$(pwd)/pkg/contrib/njs/build \
61-
&& ./configure $CONFIGURE_ARGS --cc-opt="$CC_OPT" --ld-opt="$LD_OPT" --modulesdir=/usr/lib/unit/debug-modules --debug \
62-
&& make -j $NCPU unitd \
63-
&& install -pm755 build/sbin/unitd /usr/sbin/unitd-debug \
64-
&& make clean \
65-
&& ./configure $CONFIGURE_ARGS --cc-opt="$CC_OPT" --ld-opt="$LD_OPT" --modulesdir=/usr/lib/unit/modules \
66-
&& make -j $NCPU unitd \
67-
&& install -pm755 build/sbin/unitd /usr/sbin/unitd \
68-
&& make clean \
6951
&& /bin/true \
7052
&& ./configure $CONFIGURE_ARGS_MODULES --cc-opt="$CC_OPT" --modulesdir=/usr/lib/unit/debug-modules --debug \
7153
&& ./configure go --go-path=$GOPATH \
@@ -95,7 +77,7 @@ RUN set -ex \
9577
unit \
9678
&& apt-get update \
9779
&& apt-get --no-install-recommends --no-install-suggests -y install curl $(cat /requirements.apt) \
98-
&& apt-get purge -y --auto-remove build-essential \
80+
&& apt-get purge -y --auto-remove git build-essential libssl-dev libpcre2-dev libclang-dev cmake \
9981
&& rm -rf /var/lib/apt/lists/* \
10082
&& rm -f /requirements.apt \
10183
&& ln -sf /dev/stderr /var/log/unit.log

Diff for: pkg/docker/Dockerfile.go1.23

+11-29
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
FROM rust:1.83.0-bookworm AS rust-build
2+
13
FROM golang:1.23-bookworm
24

35
LABEL org.opencontainers.image.title="Unit (go1.23)"
@@ -8,30 +10,18 @@ LABEL org.opencontainers.image.documentation="https://unit.nginx.org/installatio
810
LABEL org.opencontainers.image.vendor="NGINX Docker Maintainers <[email protected]>"
911
LABEL org.opencontainers.image.version="1.34.0"
1012

11-
RUN set -ex \
13+
COPY --from=unit:1.34.0-base /usr/sbin/unitd* /usr/sbin/
14+
COPY --from=unit:1.34.0-base /usr/lib/libnxt.a /usr/lib/libnxt.a
15+
16+
RUN --mount=type=bind,target=/rust,from=rust-build,rw \
17+
set -ex \
1218
&& savedAptMark="$(apt-mark showmanual)" \
1319
&& apt-get update \
1420
&& apt-get install --no-install-recommends --no-install-suggests -y \
1521
ca-certificates git build-essential libssl-dev libpcre2-dev curl pkg-config libclang-dev cmake \
16-
&& export RUST_VERSION=1.83.0 \
17-
&& export RUSTUP_HOME=/usr/src/unit/rustup \
18-
&& export CARGO_HOME=/usr/src/unit/cargo \
19-
&& export PATH=/usr/src/unit/cargo/bin:$PATH \
20-
&& dpkgArch="$(dpkg --print-architecture)" \
21-
&& case "${dpkgArch##*-}" in \
22-
amd64) rustArch="x86_64-unknown-linux-gnu"; rustupSha256="6aeece6993e902708983b209d04c0d1dbb14ebb405ddb87def578d41f920f56d" ;; \
23-
arm64) rustArch="aarch64-unknown-linux-gnu"; rustupSha256="1cffbf51e63e634c746f741de50649bbbcbd9dbe1de363c9ecef64e278dba2b2" ;; \
24-
*) echo >&2 "unsupported architecture: ${dpkgArch}"; exit 1 ;; \
25-
esac \
26-
&& url="https://static.rust-lang.org/rustup/archive/1.27.1/${rustArch}/rustup-init" \
27-
&& curl -L -O "$url" \
28-
&& echo "${rustupSha256} *rustup-init" | sha256sum -c - \
29-
&& chmod +x rustup-init \
30-
&& ./rustup-init -y --no-modify-path --profile minimal --default-toolchain $RUST_VERSION --default-host ${rustArch} \
31-
&& rm rustup-init \
32-
&& rustup --version \
33-
&& cargo --version \
34-
&& rustc --version \
22+
&& export RUSTUP_HOME=/rust/usr/src/unit/rustup \
23+
&& export CARGO_HOME=/rust/usr/src/unit/cargo \
24+
&& export PATH=/rust/usr/local/cargo/bin/:$PATH \
3525
&& mkdir -p /usr/lib/unit/modules /usr/lib/unit/debug-modules \
3626
&& mkdir -p /usr/src/unit \
3727
&& cd /usr/src/unit \
@@ -58,14 +48,6 @@ RUN set -ex \
5848
--otel" \
5949
&& make -j $NCPU -C pkg/contrib .njs \
6050
&& export PKG_CONFIG_PATH=$(pwd)/pkg/contrib/njs/build \
61-
&& ./configure $CONFIGURE_ARGS --cc-opt="$CC_OPT" --ld-opt="$LD_OPT" --modulesdir=/usr/lib/unit/debug-modules --debug \
62-
&& make -j $NCPU unitd \
63-
&& install -pm755 build/sbin/unitd /usr/sbin/unitd-debug \
64-
&& make clean \
65-
&& ./configure $CONFIGURE_ARGS --cc-opt="$CC_OPT" --ld-opt="$LD_OPT" --modulesdir=/usr/lib/unit/modules \
66-
&& make -j $NCPU unitd \
67-
&& install -pm755 build/sbin/unitd /usr/sbin/unitd \
68-
&& make clean \
6951
&& /bin/true \
7052
&& ./configure $CONFIGURE_ARGS_MODULES --cc-opt="$CC_OPT" --modulesdir=/usr/lib/unit/debug-modules --debug \
7153
&& ./configure go --go-path=$GOPATH \
@@ -95,7 +77,7 @@ RUN set -ex \
9577
unit \
9678
&& apt-get update \
9779
&& apt-get --no-install-recommends --no-install-suggests -y install curl $(cat /requirements.apt) \
98-
&& apt-get purge -y --auto-remove build-essential \
80+
&& apt-get purge -y --auto-remove git build-essential libssl-dev libpcre2-dev libclang-dev cmake \
9981
&& rm -rf /var/lib/apt/lists/* \
10082
&& rm -f /requirements.apt \
10183
&& ln -sf /dev/stderr /var/log/unit.log

Diff for: pkg/docker/Dockerfile.jsc11

+11-29
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
FROM rust:1.83.0-bookworm AS rust-build
2+
13
FROM eclipse-temurin:11-jdk-jammy
24

35
LABEL org.opencontainers.image.title="Unit (jsc11)"
@@ -8,30 +10,18 @@ LABEL org.opencontainers.image.documentation="https://unit.nginx.org/installatio
810
LABEL org.opencontainers.image.vendor="NGINX Docker Maintainers <[email protected]>"
911
LABEL org.opencontainers.image.version="1.34.0"
1012

11-
RUN set -ex \
13+
COPY --from=unit:1.34.0-base /usr/sbin/unitd* /usr/sbin/
14+
COPY --from=unit:1.34.0-base /usr/lib/libnxt.a /usr/lib/libnxt.a
15+
16+
RUN --mount=type=bind,target=/rust,from=rust-build,rw \
17+
set -ex \
1218
&& savedAptMark="$(apt-mark showmanual)" \
1319
&& apt-get update \
1420
&& apt-get install --no-install-recommends --no-install-suggests -y \
1521
ca-certificates git build-essential libssl-dev libpcre2-dev curl pkg-config libclang-dev cmake \
16-
&& export RUST_VERSION=1.83.0 \
17-
&& export RUSTUP_HOME=/usr/src/unit/rustup \
18-
&& export CARGO_HOME=/usr/src/unit/cargo \
19-
&& export PATH=/usr/src/unit/cargo/bin:$PATH \
20-
&& dpkgArch="$(dpkg --print-architecture)" \
21-
&& case "${dpkgArch##*-}" in \
22-
amd64) rustArch="x86_64-unknown-linux-gnu"; rustupSha256="6aeece6993e902708983b209d04c0d1dbb14ebb405ddb87def578d41f920f56d" ;; \
23-
arm64) rustArch="aarch64-unknown-linux-gnu"; rustupSha256="1cffbf51e63e634c746f741de50649bbbcbd9dbe1de363c9ecef64e278dba2b2" ;; \
24-
*) echo >&2 "unsupported architecture: ${dpkgArch}"; exit 1 ;; \
25-
esac \
26-
&& url="https://static.rust-lang.org/rustup/archive/1.27.1/${rustArch}/rustup-init" \
27-
&& curl -L -O "$url" \
28-
&& echo "${rustupSha256} *rustup-init" | sha256sum -c - \
29-
&& chmod +x rustup-init \
30-
&& ./rustup-init -y --no-modify-path --profile minimal --default-toolchain $RUST_VERSION --default-host ${rustArch} \
31-
&& rm rustup-init \
32-
&& rustup --version \
33-
&& cargo --version \
34-
&& rustc --version \
22+
&& export RUSTUP_HOME=/rust/usr/src/unit/rustup \
23+
&& export CARGO_HOME=/rust/usr/src/unit/cargo \
24+
&& export PATH=/rust/usr/local/cargo/bin/:$PATH \
3525
&& mkdir -p /usr/lib/unit/modules /usr/lib/unit/debug-modules \
3626
&& mkdir -p /usr/src/unit \
3727
&& cd /usr/src/unit \
@@ -58,14 +48,6 @@ RUN set -ex \
5848
--otel" \
5949
&& make -j $NCPU -C pkg/contrib .njs \
6050
&& export PKG_CONFIG_PATH=$(pwd)/pkg/contrib/njs/build \
61-
&& ./configure $CONFIGURE_ARGS --cc-opt="$CC_OPT" --ld-opt="$LD_OPT" --modulesdir=/usr/lib/unit/debug-modules --debug \
62-
&& make -j $NCPU unitd \
63-
&& install -pm755 build/sbin/unitd /usr/sbin/unitd-debug \
64-
&& make clean \
65-
&& ./configure $CONFIGURE_ARGS --cc-opt="$CC_OPT" --ld-opt="$LD_OPT" --modulesdir=/usr/lib/unit/modules \
66-
&& make -j $NCPU unitd \
67-
&& install -pm755 build/sbin/unitd /usr/sbin/unitd \
68-
&& make clean \
6951
&& /bin/true \
7052
&& ./configure $CONFIGURE_ARGS_MODULES --cc-opt="$CC_OPT" --modulesdir=/usr/lib/unit/debug-modules --debug \
7153
&& ./configure java --jars=/usr/share/unit-jsc-common/ \
@@ -95,7 +77,7 @@ RUN set -ex \
9577
unit \
9678
&& apt-get update \
9779
&& apt-get --no-install-recommends --no-install-suggests -y install curl $(cat /requirements.apt) \
98-
&& apt-get purge -y --auto-remove build-essential \
80+
&& apt-get purge -y --auto-remove git build-essential libssl-dev libpcre2-dev libclang-dev cmake \
9981
&& rm -rf /var/lib/apt/lists/* \
10082
&& rm -f /requirements.apt \
10183
&& ln -sf /dev/stderr /var/log/unit.log

Diff for: pkg/docker/Dockerfile.minimal

+11-29
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
FROM rust:1.83.0-bookworm AS rust-build
2+
13
FROM debian:bookworm-slim
24

35
LABEL org.opencontainers.image.title="Unit (minimal)"
@@ -8,30 +10,18 @@ LABEL org.opencontainers.image.documentation="https://unit.nginx.org/installatio
810
LABEL org.opencontainers.image.vendor="NGINX Docker Maintainers <[email protected]>"
911
LABEL org.opencontainers.image.version="1.34.0"
1012

11-
RUN set -ex \
13+
COPY --from=unit:1.34.0-base /usr/sbin/unitd* /usr/sbin/
14+
COPY --from=unit:1.34.0-base /usr/lib/libnxt.a /usr/lib/libnxt.a
15+
16+
RUN --mount=type=bind,target=/rust,from=rust-build,rw \
17+
set -ex \
1218
&& savedAptMark="$(apt-mark showmanual)" \
1319
&& apt-get update \
1420
&& apt-get install --no-install-recommends --no-install-suggests -y \
1521
ca-certificates git build-essential libssl-dev libpcre2-dev curl pkg-config libclang-dev cmake \
16-
&& export RUST_VERSION=1.83.0 \
17-
&& export RUSTUP_HOME=/usr/src/unit/rustup \
18-
&& export CARGO_HOME=/usr/src/unit/cargo \
19-
&& export PATH=/usr/src/unit/cargo/bin:$PATH \
20-
&& dpkgArch="$(dpkg --print-architecture)" \
21-
&& case "${dpkgArch##*-}" in \
22-
amd64) rustArch="x86_64-unknown-linux-gnu"; rustupSha256="6aeece6993e902708983b209d04c0d1dbb14ebb405ddb87def578d41f920f56d" ;; \
23-
arm64) rustArch="aarch64-unknown-linux-gnu"; rustupSha256="1cffbf51e63e634c746f741de50649bbbcbd9dbe1de363c9ecef64e278dba2b2" ;; \
24-
*) echo >&2 "unsupported architecture: ${dpkgArch}"; exit 1 ;; \
25-
esac \
26-
&& url="https://static.rust-lang.org/rustup/archive/1.27.1/${rustArch}/rustup-init" \
27-
&& curl -L -O "$url" \
28-
&& echo "${rustupSha256} *rustup-init" | sha256sum -c - \
29-
&& chmod +x rustup-init \
30-
&& ./rustup-init -y --no-modify-path --profile minimal --default-toolchain $RUST_VERSION --default-host ${rustArch} \
31-
&& rm rustup-init \
32-
&& rustup --version \
33-
&& cargo --version \
34-
&& rustc --version \
22+
&& export RUSTUP_HOME=/rust/usr/src/unit/rustup \
23+
&& export CARGO_HOME=/rust/usr/src/unit/cargo \
24+
&& export PATH=/rust/usr/local/cargo/bin/:$PATH \
3525
&& mkdir -p /usr/lib/unit/modules /usr/lib/unit/debug-modules \
3626
&& mkdir -p /usr/src/unit \
3727
&& cd /usr/src/unit \
@@ -58,14 +48,6 @@ RUN set -ex \
5848
--otel" \
5949
&& make -j $NCPU -C pkg/contrib .njs \
6050
&& export PKG_CONFIG_PATH=$(pwd)/pkg/contrib/njs/build \
61-
&& ./configure $CONFIGURE_ARGS --cc-opt="$CC_OPT" --ld-opt="$LD_OPT" --modulesdir=/usr/lib/unit/debug-modules --debug \
62-
&& make -j $NCPU unitd \
63-
&& install -pm755 build/sbin/unitd /usr/sbin/unitd-debug \
64-
&& make clean \
65-
&& ./configure $CONFIGURE_ARGS --cc-opt="$CC_OPT" --ld-opt="$LD_OPT" --modulesdir=/usr/lib/unit/modules \
66-
&& make -j $NCPU unitd \
67-
&& install -pm755 build/sbin/unitd /usr/sbin/unitd \
68-
&& make clean \
6951
&& /bin/true \
7052
&& ./configure $CONFIGURE_ARGS_MODULES --cc-opt="$CC_OPT" --modulesdir=/usr/lib/unit/debug-modules --debug \
7153
&& ./configure \
@@ -95,7 +77,7 @@ RUN set -ex \
9577
unit \
9678
&& apt-get update \
9779
&& apt-get --no-install-recommends --no-install-suggests -y install curl $(cat /requirements.apt) \
98-
&& apt-get purge -y --auto-remove build-essential \
80+
&& apt-get purge -y --auto-remove git build-essential libssl-dev libpcre2-dev libclang-dev cmake \
9981
&& rm -rf /var/lib/apt/lists/* \
10082
&& rm -f /requirements.apt \
10183
&& ln -sf /dev/stderr /var/log/unit.log

0 commit comments

Comments
 (0)