Skip to content

Commit ed8aa95

Browse files
committed
Regenerated Dockerfiles.
1 parent d400896 commit ed8aa95

File tree

8 files changed

+136
-88
lines changed

8 files changed

+136
-88
lines changed

pkg/docker/Dockerfile.go1.20

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,20 @@
1-
FROM golang:1.20 as BUILDER
1+
FROM golang:1.20-bullseye
22

3-
LABEL maintainer="NGINX Docker Maintainers <docker-maint@nginx.com>"
3+
LABEL org.opencontainers.image.title="Unit"
4+
LABEL org.opencontainers.image.description="Official build of Unit for Docker."
5+
LABEL org.opencontainers.image.url="https://unit.nginx.org"
6+
LABEL org.opencontainers.image.source="https://github.com/nginx/unit"
7+
LABEL org.opencontainers.image.documentation="https://unit.nginx.org/installation/#docker-images"
8+
LABEL org.opencontainers.image.vendor="NGINX Docker Maintainers <docker-maint@nginx.com>"
9+
LABEL org.opencontainers.image.version="%%VERSION%%"
410

511
RUN set -ex \
612
&& savedAptMark="$(apt-mark showmanual)" \
713
&& apt-get update \
814
&& apt-get install --no-install-recommends --no-install-suggests -y ca-certificates mercurial build-essential libssl-dev libpcre2-dev \
915
&& mkdir -p /usr/lib/unit/modules /usr/lib/unit/debug-modules \
10-
&& hg clone https://hg.nginx.org/unit \
16+
&& hg clone -u 1.29.1-1 https://hg.nginx.org/unit \
1117
&& cd unit \
12-
&& hg up 1.29.1 \
1318
&& NCPU="$(getconf _NPROCESSORS_ONLN)" \
1419
&& DEB_HOST_MULTIARCH="$(dpkg-architecture -q DEB_HOST_MULTIARCH)" \
1520
&& CC_OPT="$(DEB_BUILD_MAINT_OPTIONS="hardening=+all,-pie" DEB_CFLAGS_MAINT_APPEND="-Wp,-D_FORTIFY_SOURCE=2 -fPIC" dpkg-buildflags --get CFLAGS)" \
@@ -39,6 +44,8 @@ RUN set -ex \
3944
&& ./configure $CONFIGURE_ARGS --cc-opt="$CC_OPT" --modules=/usr/lib/unit/modules \
4045
&& ./configure go --go-path=$GOPATH \
4146
&& make -j $NCPU go-install-src libunit-install \
47+
&& cd \
48+
&& rm -rf unit \
4249
&& for f in /usr/sbin/unitd /usr/lib/unit/modules/*.unit.so; do \
4350
ldd $f | awk '/=>/{print $(NF-1)}' | while read n; do dpkg-query -S $n; done | sed 's/^\([^:]\+\):.*$/\1/' | sort | uniq >> /requirements.apt; \
4451
done \
@@ -47,20 +54,19 @@ RUN set -ex \
4754
&& /bin/true \
4855
&& mkdir -p /var/lib/unit/ \
4956
&& mkdir /docker-entrypoint.d/ \
50-
&& addgroup --system unit \
51-
&& adduser \
52-
--system \
53-
--disabled-login \
54-
--ingroup unit \
57+
&& groupadd --gid 999 unit \
58+
&& useradd \
59+
--uid 999 \
60+
--gid unit \
5561
--no-create-home \
5662
--home /nonexistent \
57-
--gecos "unit user" \
63+
--comment "unit user" \
5864
--shell /bin/false \
5965
unit \
6066
&& apt-get update \
6167
&& apt-get --no-install-recommends --no-install-suggests -y install curl $(cat /requirements.apt) \
6268
&& apt-get purge -y --auto-remove \
63-
&& apt-get clean && rm -rf /var/lib/apt/lists/* \
69+
&& rm -rf /var/lib/apt/lists/* \
6470
&& rm -f /requirements.apt \
6571
&& ln -sf /dev/stdout /var/log/unit.log
6672

pkg/docker/Dockerfile.jsc11

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,20 @@
1-
FROM eclipse-temurin:11-jdk as BUILDER
1+
FROM eclipse-temurin:11-jdk-jammy
22

3-
LABEL maintainer="NGINX Docker Maintainers <docker-maint@nginx.com>"
3+
LABEL org.opencontainers.image.title="Unit"
4+
LABEL org.opencontainers.image.description="Official build of Unit for Docker."
5+
LABEL org.opencontainers.image.url="https://unit.nginx.org"
6+
LABEL org.opencontainers.image.source="https://github.com/nginx/unit"
7+
LABEL org.opencontainers.image.documentation="https://unit.nginx.org/installation/#docker-images"
8+
LABEL org.opencontainers.image.vendor="NGINX Docker Maintainers <docker-maint@nginx.com>"
9+
LABEL org.opencontainers.image.version="%%VERSION%%"
410

511
RUN set -ex \
612
&& savedAptMark="$(apt-mark showmanual)" \
713
&& apt-get update \
814
&& apt-get install --no-install-recommends --no-install-suggests -y ca-certificates mercurial build-essential libssl-dev libpcre2-dev \
915
&& mkdir -p /usr/lib/unit/modules /usr/lib/unit/debug-modules \
10-
&& hg clone https://hg.nginx.org/unit \
16+
&& hg clone -u 1.29.1-1 https://hg.nginx.org/unit \
1117
&& cd unit \
12-
&& hg up 1.29.1 \
1318
&& NCPU="$(getconf _NPROCESSORS_ONLN)" \
1419
&& DEB_HOST_MULTIARCH="$(dpkg-architecture -q DEB_HOST_MULTIARCH)" \
1520
&& CC_OPT="$(DEB_BUILD_MAINT_OPTIONS="hardening=+all,-pie" DEB_CFLAGS_MAINT_APPEND="-Wp,-D_FORTIFY_SOURCE=2 -fPIC" dpkg-buildflags --get CFLAGS)" \
@@ -39,6 +44,8 @@ RUN set -ex \
3944
&& ./configure $CONFIGURE_ARGS --cc-opt="$CC_OPT" --modules=/usr/lib/unit/modules \
4045
&& ./configure java --jars=/usr/share/unit-jsc-common/ \
4146
&& make -j $NCPU java-shared-install java-install \
47+
&& cd \
48+
&& rm -rf unit \
4249
&& for f in /usr/sbin/unitd /usr/lib/unit/modules/*.unit.so; do \
4350
ldd $f | awk '/=>/{print $(NF-1)}' | while read n; do dpkg-query -S $n; done | sed 's/^\([^:]\+\):.*$/\1/' | sort | uniq >> /requirements.apt; \
4451
done \
@@ -47,20 +54,19 @@ RUN set -ex \
4754
&& /bin/true \
4855
&& mkdir -p /var/lib/unit/ \
4956
&& mkdir /docker-entrypoint.d/ \
50-
&& addgroup --system unit \
51-
&& adduser \
52-
--system \
53-
--disabled-login \
54-
--ingroup unit \
57+
&& groupadd --gid 999 unit \
58+
&& useradd \
59+
--uid 999 \
60+
--gid unit \
5561
--no-create-home \
5662
--home /nonexistent \
57-
--gecos "unit user" \
63+
--comment "unit user" \
5864
--shell /bin/false \
5965
unit \
6066
&& apt-get update \
6167
&& apt-get --no-install-recommends --no-install-suggests -y install curl $(cat /requirements.apt) \
6268
&& apt-get purge -y --auto-remove \
63-
&& apt-get clean && rm -rf /var/lib/apt/lists/* \
69+
&& rm -rf /var/lib/apt/lists/* \
6470
&& rm -f /requirements.apt \
6571
&& ln -sf /dev/stdout /var/log/unit.log
6672

pkg/docker/Dockerfile.minimal

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,20 @@
1-
FROM debian:bullseye-slim as BUILDER
1+
FROM debian:bullseye-slim
22

3-
LABEL maintainer="NGINX Docker Maintainers <docker-maint@nginx.com>"
3+
LABEL org.opencontainers.image.title="Unit"
4+
LABEL org.opencontainers.image.description="Official build of Unit for Docker."
5+
LABEL org.opencontainers.image.url="https://unit.nginx.org"
6+
LABEL org.opencontainers.image.source="https://github.com/nginx/unit"
7+
LABEL org.opencontainers.image.documentation="https://unit.nginx.org/installation/#docker-images"
8+
LABEL org.opencontainers.image.vendor="NGINX Docker Maintainers <docker-maint@nginx.com>"
9+
LABEL org.opencontainers.image.version="%%VERSION%%"
410

511
RUN set -ex \
612
&& savedAptMark="$(apt-mark showmanual)" \
713
&& apt-get update \
814
&& apt-get install --no-install-recommends --no-install-suggests -y ca-certificates mercurial build-essential libssl-dev libpcre2-dev \
915
&& mkdir -p /usr/lib/unit/modules /usr/lib/unit/debug-modules \
10-
&& hg clone https://hg.nginx.org/unit \
16+
&& hg clone -u 1.29.1-1 https://hg.nginx.org/unit \
1117
&& cd unit \
12-
&& hg up 1.29.1 \
1318
&& NCPU="$(getconf _NPROCESSORS_ONLN)" \
1419
&& DEB_HOST_MULTIARCH="$(dpkg-architecture -q DEB_HOST_MULTIARCH)" \
1520
&& CC_OPT="$(DEB_BUILD_MAINT_OPTIONS="hardening=+all,-pie" DEB_CFLAGS_MAINT_APPEND="-Wp,-D_FORTIFY_SOURCE=2 -fPIC" dpkg-buildflags --get CFLAGS)" \
@@ -39,6 +44,8 @@ RUN set -ex \
3944
&& ./configure $CONFIGURE_ARGS --cc-opt="$CC_OPT" --modules=/usr/lib/unit/modules \
4045
&& ./configure \
4146
&& make -j $NCPU version \
47+
&& cd \
48+
&& rm -rf unit \
4249
&& for f in /usr/sbin/unitd /usr/lib/unit/modules/*.unit.so; do \
4350
ldd $f | awk '/=>/{print $(NF-1)}' | while read n; do dpkg-query -S $n; done | sed 's/^\([^:]\+\):.*$/\1/' | sort | uniq >> /requirements.apt; \
4451
done \
@@ -47,20 +54,19 @@ RUN set -ex \
4754
&& /bin/true \
4855
&& mkdir -p /var/lib/unit/ \
4956
&& mkdir /docker-entrypoint.d/ \
50-
&& addgroup --system unit \
51-
&& adduser \
52-
--system \
53-
--disabled-login \
54-
--ingroup unit \
57+
&& groupadd --gid 999 unit \
58+
&& useradd \
59+
--uid 999 \
60+
--gid unit \
5561
--no-create-home \
5662
--home /nonexistent \
57-
--gecos "unit user" \
63+
--comment "unit user" \
5864
--shell /bin/false \
5965
unit \
6066
&& apt-get update \
6167
&& apt-get --no-install-recommends --no-install-suggests -y install curl $(cat /requirements.apt) \
6268
&& apt-get purge -y --auto-remove \
63-
&& apt-get clean && rm -rf /var/lib/apt/lists/* \
69+
&& rm -rf /var/lib/apt/lists/* \
6470
&& rm -f /requirements.apt \
6571
&& ln -sf /dev/stdout /var/log/unit.log
6672

pkg/docker/Dockerfile.node18

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,20 @@
1-
FROM node:18 as BUILDER
1+
FROM node:18-bullseye
22

3-
LABEL maintainer="NGINX Docker Maintainers <docker-maint@nginx.com>"
3+
LABEL org.opencontainers.image.title="Unit"
4+
LABEL org.opencontainers.image.description="Official build of Unit for Docker."
5+
LABEL org.opencontainers.image.url="https://unit.nginx.org"
6+
LABEL org.opencontainers.image.source="https://github.com/nginx/unit"
7+
LABEL org.opencontainers.image.documentation="https://unit.nginx.org/installation/#docker-images"
8+
LABEL org.opencontainers.image.vendor="NGINX Docker Maintainers <docker-maint@nginx.com>"
9+
LABEL org.opencontainers.image.version="%%VERSION%%"
410

511
RUN set -ex \
612
&& savedAptMark="$(apt-mark showmanual)" \
713
&& apt-get update \
814
&& apt-get install --no-install-recommends --no-install-suggests -y ca-certificates mercurial build-essential libssl-dev libpcre2-dev \
915
&& mkdir -p /usr/lib/unit/modules /usr/lib/unit/debug-modules \
10-
&& hg clone https://hg.nginx.org/unit \
16+
&& hg clone -u 1.29.1-1 https://hg.nginx.org/unit \
1117
&& cd unit \
12-
&& hg up 1.29.1 \
1318
&& NCPU="$(getconf _NPROCESSORS_ONLN)" \
1419
&& DEB_HOST_MULTIARCH="$(dpkg-architecture -q DEB_HOST_MULTIARCH)" \
1520
&& CC_OPT="$(DEB_BUILD_MAINT_OPTIONS="hardening=+all,-pie" DEB_CFLAGS_MAINT_APPEND="-Wp,-D_FORTIFY_SOURCE=2 -fPIC" dpkg-buildflags --get CFLAGS)" \
@@ -39,6 +44,8 @@ RUN set -ex \
3944
&& ./configure $CONFIGURE_ARGS --cc-opt="$CC_OPT" --modules=/usr/lib/unit/modules \
4045
&& ./configure nodejs --node-gyp=/usr/local/lib/node_modules/npm/bin/node-gyp-bin/node-gyp \
4146
&& make -j $NCPU node node-install libunit-install \
47+
&& cd \
48+
&& rm -rf unit \
4249
&& for f in /usr/sbin/unitd /usr/lib/unit/modules/*.unit.so; do \
4350
ldd $f | awk '/=>/{print $(NF-1)}' | while read n; do dpkg-query -S $n; done | sed 's/^\([^:]\+\):.*$/\1/' | sort | uniq >> /requirements.apt; \
4451
done \
@@ -47,20 +54,19 @@ RUN set -ex \
4754
&& /bin/true \
4855
&& mkdir -p /var/lib/unit/ \
4956
&& mkdir /docker-entrypoint.d/ \
50-
&& addgroup --system unit \
51-
&& adduser \
52-
--system \
53-
--disabled-login \
54-
--ingroup unit \
57+
&& groupadd --gid 999 unit \
58+
&& useradd \
59+
--uid 999 \
60+
--gid unit \
5561
--no-create-home \
5662
--home /nonexistent \
57-
--gecos "unit user" \
63+
--comment "unit user" \
5864
--shell /bin/false \
5965
unit \
6066
&& apt-get update \
6167
&& apt-get --no-install-recommends --no-install-suggests -y install curl $(cat /requirements.apt) \
6268
&& apt-get purge -y --auto-remove \
63-
&& apt-get clean && rm -rf /var/lib/apt/lists/* \
69+
&& rm -rf /var/lib/apt/lists/* \
6470
&& rm -f /requirements.apt \
6571
&& ln -sf /dev/stdout /var/log/unit.log
6672

pkg/docker/Dockerfile.perl5.36

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,20 @@
1-
FROM perl:5.36 as BUILDER
1+
FROM perl:5.36-bullseye
22

3-
LABEL maintainer="NGINX Docker Maintainers <docker-maint@nginx.com>"
3+
LABEL org.opencontainers.image.title="Unit"
4+
LABEL org.opencontainers.image.description="Official build of Unit for Docker."
5+
LABEL org.opencontainers.image.url="https://unit.nginx.org"
6+
LABEL org.opencontainers.image.source="https://github.com/nginx/unit"
7+
LABEL org.opencontainers.image.documentation="https://unit.nginx.org/installation/#docker-images"
8+
LABEL org.opencontainers.image.vendor="NGINX Docker Maintainers <docker-maint@nginx.com>"
9+
LABEL org.opencontainers.image.version="%%VERSION%%"
410

511
RUN set -ex \
612
&& savedAptMark="$(apt-mark showmanual)" \
713
&& apt-get update \
814
&& apt-get install --no-install-recommends --no-install-suggests -y ca-certificates mercurial build-essential libssl-dev libpcre2-dev \
915
&& mkdir -p /usr/lib/unit/modules /usr/lib/unit/debug-modules \
10-
&& hg clone https://hg.nginx.org/unit \
16+
&& hg clone -u 1.29.1-1 https://hg.nginx.org/unit \
1117
&& cd unit \
12-
&& hg up 1.29.1 \
1318
&& NCPU="$(getconf _NPROCESSORS_ONLN)" \
1419
&& DEB_HOST_MULTIARCH="$(dpkg-architecture -q DEB_HOST_MULTIARCH)" \
1520
&& CC_OPT="$(DEB_BUILD_MAINT_OPTIONS="hardening=+all,-pie" DEB_CFLAGS_MAINT_APPEND="-Wp,-D_FORTIFY_SOURCE=2 -fPIC" dpkg-buildflags --get CFLAGS)" \
@@ -39,6 +44,8 @@ RUN set -ex \
3944
&& ./configure $CONFIGURE_ARGS --cc-opt="$CC_OPT" --modules=/usr/lib/unit/modules \
4045
&& ./configure perl \
4146
&& make -j $NCPU perl-install \
47+
&& cd \
48+
&& rm -rf unit \
4249
&& for f in /usr/sbin/unitd /usr/lib/unit/modules/*.unit.so; do \
4350
ldd $f | awk '/=>/{print $(NF-1)}' | while read n; do dpkg-query -S $n; done | sed 's/^\([^:]\+\):.*$/\1/' | sort | uniq >> /requirements.apt; \
4451
done \
@@ -47,20 +54,19 @@ RUN set -ex \
4754
&& /bin/true \
4855
&& mkdir -p /var/lib/unit/ \
4956
&& mkdir /docker-entrypoint.d/ \
50-
&& addgroup --system unit \
51-
&& adduser \
52-
--system \
53-
--disabled-login \
54-
--ingroup unit \
57+
&& groupadd --gid 999 unit \
58+
&& useradd \
59+
--uid 999 \
60+
--gid unit \
5561
--no-create-home \
5662
--home /nonexistent \
57-
--gecos "unit user" \
63+
--comment "unit user" \
5864
--shell /bin/false \
5965
unit \
6066
&& apt-get update \
6167
&& apt-get --no-install-recommends --no-install-suggests -y install curl $(cat /requirements.apt) \
6268
&& apt-get purge -y --auto-remove \
63-
&& apt-get clean && rm -rf /var/lib/apt/lists/* \
69+
&& rm -rf /var/lib/apt/lists/* \
6470
&& rm -f /requirements.apt \
6571
&& ln -sf /dev/stdout /var/log/unit.log
6672

pkg/docker/Dockerfile.php8.2

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,20 @@
1-
FROM php:8.2-cli as BUILDER
1+
FROM php:8.2-cli-bullseye
22

3-
LABEL maintainer="NGINX Docker Maintainers <docker-maint@nginx.com>"
3+
LABEL org.opencontainers.image.title="Unit"
4+
LABEL org.opencontainers.image.description="Official build of Unit for Docker."
5+
LABEL org.opencontainers.image.url="https://unit.nginx.org"
6+
LABEL org.opencontainers.image.source="https://github.com/nginx/unit"
7+
LABEL org.opencontainers.image.documentation="https://unit.nginx.org/installation/#docker-images"
8+
LABEL org.opencontainers.image.vendor="NGINX Docker Maintainers <docker-maint@nginx.com>"
9+
LABEL org.opencontainers.image.version="%%VERSION%%"
410

511
RUN set -ex \
612
&& savedAptMark="$(apt-mark showmanual)" \
713
&& apt-get update \
814
&& apt-get install --no-install-recommends --no-install-suggests -y ca-certificates mercurial build-essential libssl-dev libpcre2-dev \
915
&& mkdir -p /usr/lib/unit/modules /usr/lib/unit/debug-modules \
10-
&& hg clone https://hg.nginx.org/unit \
16+
&& hg clone -u 1.29.1-1 https://hg.nginx.org/unit \
1117
&& cd unit \
12-
&& hg up 1.29.1 \
1318
&& NCPU="$(getconf _NPROCESSORS_ONLN)" \
1419
&& DEB_HOST_MULTIARCH="$(dpkg-architecture -q DEB_HOST_MULTIARCH)" \
1520
&& CC_OPT="$(DEB_BUILD_MAINT_OPTIONS="hardening=+all,-pie" DEB_CFLAGS_MAINT_APPEND="-Wp,-D_FORTIFY_SOURCE=2 -fPIC" dpkg-buildflags --get CFLAGS)" \
@@ -39,6 +44,8 @@ RUN set -ex \
3944
&& ./configure $CONFIGURE_ARGS --cc-opt="$CC_OPT" --modules=/usr/lib/unit/modules \
4045
&& ./configure php \
4146
&& make -j $NCPU php-install \
47+
&& cd \
48+
&& rm -rf unit \
4249
&& for f in /usr/sbin/unitd /usr/lib/unit/modules/*.unit.so; do \
4350
ldd $f | awk '/=>/{print $(NF-1)}' | while read n; do dpkg-query -S $n; done | sed 's/^\([^:]\+\):.*$/\1/' | sort | uniq >> /requirements.apt; \
4451
done \
@@ -47,20 +54,19 @@ RUN set -ex \
4754
&& ldconfig \
4855
&& mkdir -p /var/lib/unit/ \
4956
&& mkdir /docker-entrypoint.d/ \
50-
&& addgroup --system unit \
51-
&& adduser \
52-
--system \
53-
--disabled-login \
54-
--ingroup unit \
57+
&& groupadd --gid 999 unit \
58+
&& useradd \
59+
--uid 999 \
60+
--gid unit \
5561
--no-create-home \
5662
--home /nonexistent \
57-
--gecos "unit user" \
63+
--comment "unit user" \
5864
--shell /bin/false \
5965
unit \
6066
&& apt-get update \
6167
&& apt-get --no-install-recommends --no-install-suggests -y install curl $(cat /requirements.apt) \
6268
&& apt-get purge -y --auto-remove \
63-
&& apt-get clean && rm -rf /var/lib/apt/lists/* \
69+
&& rm -rf /var/lib/apt/lists/* \
6470
&& rm -f /requirements.apt \
6571
&& ln -sf /dev/stdout /var/log/unit.log
6672

0 commit comments

Comments
 (0)