$ docker pull unit@sha256:f0ba5542664359004cb914a0d0e3e359d4409263d56efb19ab771d9c1f41adb0
Manifest MIME: application/vnd.oci.image.index.v1+json
Platforms: 4
linux; amd64
unknown; unknown
linux; arm64 variant v8
unknown; unknown
unit:node20
- linux; amd64
$ docker pull unit@sha256:4516559c05659b004b3737fb7b310725a2898d4ab679d22c2f58e2d2e1d37700
Manifest MIME: application/vnd.docker.distribution.manifest.v2+json
Total Size: 422.4 MB (422372493 bytes)
(compressed transfer size, not on-disk size)
Image ID: sha256:c7e89d16c0543e89c43648645a6fa7cddb10cebd8f5043b89c6b0905828f8f70
Entrypoint: ["\/usr\/local\/bin\/docker-entrypoint.sh"]
Default Command: ["unitd","--no-daemon","--control","unix:\/var\/run\/control.unit.sock"]
# Wed, 10 May 2023 23:29:59 GMT
RUN # debian.sh --arch 'amd64' out/ 'bookworm' '@1742169600'
# Wed, 10 May 2023 23:29:59 GMT
RUN set -eux; apt-get update; apt-get install -y --no-install-recommends ca-certificates curl gnupg netbase sq wget ; rm -rf /var/lib/apt/lists/* # buildkit
# Tue, 09 Jan 2024 01:14:25 GMT
RUN set -eux; apt-get update; apt-get install -y --no-install-recommends git mercurial openssh-client subversion procps ; rm -rf /var/lib/apt/lists/* # buildkit
# Tue, 09 Jan 2024 01:14:25 GMT
RUN set -ex; apt-get update; apt-get install -y --no-install-recommends autoconf automake bzip2 default-libmysqlclient-dev dpkg-dev file g++ gcc imagemagick libbz2-dev libc6-dev libcurl4-openssl-dev libdb-dev libevent-dev libffi-dev libgdbm-dev libglib2.0-dev libgmp-dev libjpeg-dev libkrb5-dev liblzma-dev libmagickcore-dev libmagickwand-dev libmaxminddb-dev libncurses5-dev libncursesw5-dev libpng-dev libpq-dev libreadline-dev libsqlite3-dev libssl-dev libtool libwebp-dev libxml2-dev libxslt-dev libyaml-dev make patch unzip xz-utils zlib1g-dev ; rm -rf /var/lib/apt/lists/* # buildkit
# Mon, 03 Mar 2025 18:37:38 GMT
RUN groupadd --gid 1000 node && useradd --uid 1000 --gid node --shell /bin/bash --create-home node # buildkit
# Mon, 03 Mar 2025 18:37:38 GMT
ENV NODE_VERSION=20.19.0
# Mon, 03 Mar 2025 18:37:38 GMT
RUN ARCH= && dpkgArch="$(dpkg --print-architecture)" && case "${dpkgArch##*-}" in amd64) ARCH='x64';; ppc64el) ARCH='ppc64le';; s390x) ARCH='s390x';; arm64) ARCH='arm64';; armhf) ARCH='armv7l';; i386) ARCH='x86';; *) echo "unsupported architecture"; exit 1 ;; esac && export GNUPGHOME="$(mktemp -d)" && set -ex && for key in C0D6248439F1D5604AAFFB4021D900FFDB233756 DD792F5973C6DE52C432CBDAC77ABFA00DDBF2B7 CC68F5A3106FF448322E48ED27F5E38D5B0A215F 8FCCA13FEF1D0C2E91008E09770F7A9A5AE15600 890C08DB8579162FEE0DF9DB8BEAB4DFCF555EF4 C82FA3AE1CBEDC6BE46B9360C43CEC45C17AB93C 108F52B48DB57BB0CC439B2997B01419BD92F80A A363A499291CBBC940DD62E41F10027AF002F8B0 ; do gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys "$key" || gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key" ; done && curl -fsSLO --compressed "https://nodejs.org/dist/v$NODE_VERSION/node-v$NODE_VERSION-linux-$ARCH.tar.xz" && curl -fsSLO --compressed "https://nodejs.org/dist/v$NODE_VERSION/SHASUMS256.txt.asc" && gpg --batch --decrypt --output SHASUMS256.txt SHASUMS256.txt.asc && gpgconf --kill all && rm -rf "$GNUPGHOME" && grep " node-v$NODE_VERSION-linux-$ARCH.tar.xz\$" SHASUMS256.txt | sha256sum -c - && tar -xJf "node-v$NODE_VERSION-linux-$ARCH.tar.xz" -C /usr/local --strip-components=1 --no-same-owner && rm "node-v$NODE_VERSION-linux-$ARCH.tar.xz" SHASUMS256.txt.asc SHASUMS256.txt && ln -s /usr/local/bin/node /usr/local/bin/nodejs && node --version && npm --version # buildkit
# Mon, 03 Mar 2025 18:37:38 GMT
ENV YARN_VERSION=1.22.22
# Mon, 03 Mar 2025 18:37:38 GMT
RUN set -ex && export GNUPGHOME="$(mktemp -d)" && for key in 6A010C5166006599AA17F08146C2130DFD2497F5 ; do gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys "$key" || gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key" ; done && curl -fsSLO --compressed "https://yarnpkg.com/downloads/$YARN_VERSION/yarn-v$YARN_VERSION.tar.gz" && curl -fsSLO --compressed "https://yarnpkg.com/downloads/$YARN_VERSION/yarn-v$YARN_VERSION.tar.gz.asc" && gpg --batch --verify yarn-v$YARN_VERSION.tar.gz.asc yarn-v$YARN_VERSION.tar.gz && gpgconf --kill all && rm -rf "$GNUPGHOME" && mkdir -p /opt && tar -xzf yarn-v$YARN_VERSION.tar.gz -C /opt/ && ln -s /opt/yarn-v$YARN_VERSION/bin/yarn /usr/local/bin/yarn && ln -s /opt/yarn-v$YARN_VERSION/bin/yarnpkg /usr/local/bin/yarnpkg && rm yarn-v$YARN_VERSION.tar.gz.asc yarn-v$YARN_VERSION.tar.gz && yarn --version && rm -rf /tmp/* # buildkit
# Mon, 03 Mar 2025 18:37:38 GMT
COPY docker-entrypoint.sh /usr/local/bin/ # buildkit
# Mon, 03 Mar 2025 18:37:38 GMT
ENTRYPOINT ["docker-entrypoint.sh" ]
# Mon, 03 Mar 2025 18:37:38 GMT
CMD ["node" ]
# Mon, 03 Mar 2025 18:37:38 GMT
LABEL org.opencontainers.image.title=Unit (node20)
# Mon, 03 Mar 2025 18:37:38 GMT
LABEL org.opencontainers.image.description=Official build of Unit for Docker.
# Mon, 03 Mar 2025 18:37:38 GMT
LABEL org.opencontainers.image.url=https://unit.nginx.org
# Mon, 03 Mar 2025 18:37:38 GMT
LABEL org.opencontainers.image.source=https://github.com/nginx/unit
# Mon, 03 Mar 2025 18:37:38 GMT
LABEL org.opencontainers.image.documentation=https://unit.nginx.org/installation/#docker-images
# Mon, 03 Mar 2025 18:37:38 GMT
LABEL org.opencontainers.image.vendor=NGINX Docker Maintainers <[email protected] >
# Mon, 03 Mar 2025 18:37:38 GMT
LABEL org.opencontainers.image.version=1.34.2
# Mon, 03 Mar 2025 18:37:38 GMT
RUN set -ex && savedAptMark="$(apt-mark showmanual)" && apt-get update && apt-get install --no-install-recommends --no-install-suggests -y ca-certificates git build-essential libssl-dev libpcre2-dev curl pkg-config libclang-dev cmake && export RUST_VERSION=1.83.0 && export RUSTUP_HOME=/usr/src/unit/rustup && export CARGO_HOME=/usr/src/unit/cargo && export PATH=/usr/src/unit/cargo/bin:$PATH && dpkgArch="$(dpkg --print-architecture)" && case "${dpkgArch##*-}" in amd64) rustArch="x86_64-unknown-linux-gnu"; rustupSha256="6aeece6993e902708983b209d04c0d1dbb14ebb405ddb87def578d41f920f56d" ;; arm64) rustArch="aarch64-unknown-linux-gnu"; rustupSha256="1cffbf51e63e634c746f741de50649bbbcbd9dbe1de363c9ecef64e278dba2b2" ;; *) echo >&2 "unsupported architecture: ${dpkgArch}"; exit 1 ;; esac && url="https://static.rust-lang.org/rustup/archive/1.27.1/${rustArch}/rustup-init" && curl -L -O "$url" && echo "${rustupSha256} *rustup-init" | sha256sum -c - && chmod +x rustup-init && ./rustup-init -y --no-modify-path --profile minimal --default-toolchain $RUST_VERSION --default-host ${rustArch} && rm rustup-init && rustup --version && cargo --version && rustc --version && mkdir -p /usr/lib/unit/modules /usr/lib/unit/debug-modules && mkdir -p /usr/src/unit && cd /usr/src/unit && git clone --depth 1 -b 1.34.2-1 https://github.com/nginx/unit && cd unit && NCPU="$(getconf _NPROCESSORS_ONLN)" && DEB_HOST_MULTIARCH="$(dpkg-architecture -q DEB_HOST_MULTIARCH)" && CC_OPT="$(DEB_BUILD_MAINT_OPTIONS="hardening=+all,-pie" DEB_CFLAGS_MAINT_APPEND="-Wp,-D_FORTIFY_SOURCE=2 -fPIC" dpkg-buildflags --get CFLAGS)" && LD_OPT="$(DEB_BUILD_MAINT_OPTIONS="hardening=+all,-pie" DEB_LDFLAGS_MAINT_APPEND="-Wl,--as-needed -pie" dpkg-buildflags --get LDFLAGS)" && CONFIGURE_ARGS_MODULES="--prefix=/usr --statedir=/var/lib/unit --control=unix:/var/run/control.unit.sock --runstatedir=/var/run --pid=/var/run/unit.pid --logdir=/var/log --log=/var/log/unit.log --tmpdir=/var/tmp --user=unit --group=unit --openssl --libdir=/usr/lib/$DEB_HOST_MULTIARCH" && CONFIGURE_ARGS="$CONFIGURE_ARGS_MODULES --njs --otel" && make -j $NCPU -C pkg/contrib .njs && export PKG_CONFIG_PATH=$(pwd)/pkg/contrib/njs/build && ./configure $CONFIGURE_ARGS --cc-opt="$CC_OPT" --ld-opt="$LD_OPT" --modulesdir=/usr/lib/unit/debug-modules --debug && make -j $NCPU unitd && install -pm755 build/sbin/unitd /usr/sbin/unitd-debug && make clean && ./configure $CONFIGURE_ARGS --cc-opt="$CC_OPT" --ld-opt="$LD_OPT" --modulesdir=/usr/lib/unit/modules && make -j $NCPU unitd && install -pm755 build/sbin/unitd /usr/sbin/unitd && make clean && npm -g install node-gyp && ./configure $CONFIGURE_ARGS_MODULES --cc-opt="$CC_OPT" --modulesdir=/usr/lib/unit/debug-modules --debug && ./configure nodejs --node-gyp=/usr/local/bin/node-gyp && make -j $NCPU node node-install libunit-install && make clean && ./configure $CONFIGURE_ARGS_MODULES --cc-opt="$CC_OPT" --modulesdir=/usr/lib/unit/modules && ./configure nodejs --node-gyp=/usr/local/bin/node-gyp && make -j $NCPU node node-install libunit-install && cd && rm -rf /usr/src/unit && for f in /usr/sbin/unitd /usr/lib/unit/modules/*.unit.so; do ldd $f | awk '/=>/{print $(NF-1)}' | while read n; do dpkg-query -S $n; done | sed 's/^\([^:]\+\):.*$/\1/' | sort | uniq >> /requirements.apt; done && apt-mark showmanual | xargs apt-mark auto > /dev/null && { [ -z "$savedAptMark" ] || apt-mark manual $savedAptMark; } && rm -rf /root/.cache/ && rm -rf /root/.npm && mkdir -p /var/lib/unit/ && mkdir -p /docker-entrypoint.d/ && groupadd --gid 999 unit && useradd --uid 999 --gid unit --no-create-home --home /nonexistent --comment "unit user" --shell /bin/false unit && apt-get update && apt-get --no-install-recommends --no-install-suggests -y install curl $(cat /requirements.apt) && apt-get purge -y --auto-remove build-essential && rm -rf /var/lib/apt/lists/* && rm -f /requirements.apt && ln -sf /dev/stderr /var/log/unit.log # buildkit
# Mon, 03 Mar 2025 18:37:38 GMT
COPY docker-entrypoint.sh /usr/local/bin/ # buildkit
# Mon, 03 Mar 2025 18:37:38 GMT
COPY welcome.* /usr/share/unit/welcome/ # buildkit
# Mon, 03 Mar 2025 18:37:38 GMT
STOPSIGNAL SIGTERM
# Mon, 03 Mar 2025 18:37:38 GMT
ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh" ]
# Mon, 03 Mar 2025 18:37:38 GMT
EXPOSE map[80/tcp:{}]
# Mon, 03 Mar 2025 18:37:38 GMT
CMD ["unitd" "--no-daemon" "--control" "unix:/var/run/control.unit.sock" ]
Layers:
sha256:7cd785773db44407e20a679ce5439222e505475eed5b99f1910eb2cda51729ab
Last Modified: Mon, 17 Mar 2025 22:17:15 GMT
Size: 48.5 MB (48467838 bytes)
MIME: application/vnd.oci.image.layer.v1.tar+gzip
sha256:091eb8249475f42de217265c501e0186f0a3ea7490ef7f51458c30db91fb3cac
Last Modified: Mon, 17 Mar 2025 23:13:26 GMT
Size: 24.0 MB (24011136 bytes)
MIME: application/vnd.oci.image.layer.v1.tar+gzip
sha256:255774e0027b72d2327719e78dbad5ad8c9cf446d055e45be7fc149418470bae
Last Modified: Tue, 18 Mar 2025 00:18:51 GMT
Size: 64.4 MB (64396484 bytes)
MIME: application/vnd.oci.image.layer.v1.tar+gzip
sha256:353e14e5cc47664fba714a7da288001d90427c705494847ac773f5cc08199451
Last Modified: Tue, 18 Mar 2025 01:13:51 GMT
Size: 211.4 MB (211352566 bytes)
MIME: application/vnd.oci.image.layer.v1.tar+gzip
sha256:d9be90953137e64241cccafe812c7d67820ab42cb888bc321de0c16f29660f6d
Last Modified: Tue, 18 Mar 2025 03:17:42 GMT
Size: 3.3 KB (3322 bytes)
MIME: application/vnd.oci.image.layer.v1.tar+gzip
sha256:bb871256cc0f70fc280615d918a7c9e457cce1ffe6981c84baac94966230b8ef
Last Modified: Tue, 18 Mar 2025 03:17:43 GMT
Size: 48.6 MB (48631880 bytes)
MIME: application/vnd.oci.image.layer.v1.tar+gzip
sha256:667459d47f42d8c737d8f67dc99f65edf53ebfe33885b2a5cab2cb3282e0beca
Last Modified: Tue, 18 Mar 2025 03:17:42 GMT
Size: 1.3 MB (1250675 bytes)
MIME: application/vnd.oci.image.layer.v1.tar+gzip
sha256:c7c39b84cee29433e5be88f632ad81922700d92f043c0b77b5e95ae63a85ff5e
Last Modified: Tue, 18 Mar 2025 03:17:42 GMT
Size: 447.0 B
MIME: application/vnd.oci.image.layer.v1.tar+gzip
sha256:26de6f7e5c3c343d4a0b8ff80e324f1d858d419c98f6c3b4e84cc187ec04c354
Last Modified: Tue, 18 Mar 2025 04:14:39 GMT
Size: 24.3 MB (24255426 bytes)
MIME: application/vnd.oci.image.layer.v1.tar+gzip
sha256:b01774fbdcd3af5acbd18a3c1789c89ce7dc65a753b61f2db5b4cc927a68012a
Last Modified: Tue, 18 Mar 2025 04:14:39 GMT
Size: 1.3 KB (1267 bytes)
MIME: application/vnd.oci.image.layer.v1.tar+gzip
sha256:6d0d5a8e0df1bed4d292399c5d1ab124ab9e9a39735fe0ea2968f8d6dd5857e5
Last Modified: Tue, 18 Mar 2025 04:14:39 GMT
Size: 1.5 KB (1452 bytes)
MIME: application/vnd.oci.image.layer.v1.tar+gzip
unit:node20
- unknown; unknown
$ docker pull unit@sha256:30f5c1c7f46d7ad7d3f04974b683aa18c21d16289fe30de50f71edf751bafe21
Manifest MIME: application/vnd.docker.distribution.manifest.v2+json
Total Size: 28.6 KB (28612 bytes)
(compressed transfer size, not on-disk size)
Image ID: sha256:de9624aa2f9881a7da9e582db28d0efca01a293388f0edb60ccb12dc42daf3d5
Layers:
sha256:3b57ba9814745b44ca9257d4ce9f3fc9480fd809ec3c1a9ef1e88aee4c42fe5c
Last Modified: Tue, 18 Mar 2025 04:14:39 GMT
Size: 28.6 KB (28612 bytes)
MIME: application/vnd.in-toto+json
unit:node20
- linux; arm64 variant v8
$ docker pull unit@sha256:052020b36cf78a4fd0de125ff318e7ba41208001de6b3fc51e4487325095392c
Manifest MIME: application/vnd.docker.distribution.manifest.v2+json
Total Size: 412.4 MB (412413228 bytes)
(compressed transfer size, not on-disk size)
Image ID: sha256:13f1ab1e15eef31bb1757f681c1381d03c57edc975e3a2d9a69632a98bee8e6d
Entrypoint: ["\/usr\/local\/bin\/docker-entrypoint.sh"]
Default Command: ["unitd","--no-daemon","--control","unix:\/var\/run\/control.unit.sock"]
# Wed, 10 May 2023 23:29:59 GMT
RUN # debian.sh --arch 'arm64' out/ 'bookworm' '@1742169600'
# Wed, 10 May 2023 23:29:59 GMT
RUN set -eux; apt-get update; apt-get install -y --no-install-recommends ca-certificates curl gnupg netbase sq wget ; rm -rf /var/lib/apt/lists/* # buildkit
# Tue, 09 Jan 2024 01:14:25 GMT
RUN set -eux; apt-get update; apt-get install -y --no-install-recommends git mercurial openssh-client subversion procps ; rm -rf /var/lib/apt/lists/* # buildkit
# Tue, 09 Jan 2024 01:14:25 GMT
RUN set -ex; apt-get update; apt-get install -y --no-install-recommends autoconf automake bzip2 default-libmysqlclient-dev dpkg-dev file g++ gcc imagemagick libbz2-dev libc6-dev libcurl4-openssl-dev libdb-dev libevent-dev libffi-dev libgdbm-dev libglib2.0-dev libgmp-dev libjpeg-dev libkrb5-dev liblzma-dev libmagickcore-dev libmagickwand-dev libmaxminddb-dev libncurses5-dev libncursesw5-dev libpng-dev libpq-dev libreadline-dev libsqlite3-dev libssl-dev libtool libwebp-dev libxml2-dev libxslt-dev libyaml-dev make patch unzip xz-utils zlib1g-dev ; rm -rf /var/lib/apt/lists/* # buildkit
# Mon, 03 Mar 2025 18:37:38 GMT
RUN groupadd --gid 1000 node && useradd --uid 1000 --gid node --shell /bin/bash --create-home node # buildkit
# Mon, 03 Mar 2025 18:37:38 GMT
ENV NODE_VERSION=20.19.0
# Mon, 03 Mar 2025 18:37:38 GMT
RUN ARCH= && dpkgArch="$(dpkg --print-architecture)" && case "${dpkgArch##*-}" in amd64) ARCH='x64';; ppc64el) ARCH='ppc64le';; s390x) ARCH='s390x';; arm64) ARCH='arm64';; armhf) ARCH='armv7l';; i386) ARCH='x86';; *) echo "unsupported architecture"; exit 1 ;; esac && export GNUPGHOME="$(mktemp -d)" && set -ex && for key in C0D6248439F1D5604AAFFB4021D900FFDB233756 DD792F5973C6DE52C432CBDAC77ABFA00DDBF2B7 CC68F5A3106FF448322E48ED27F5E38D5B0A215F 8FCCA13FEF1D0C2E91008E09770F7A9A5AE15600 890C08DB8579162FEE0DF9DB8BEAB4DFCF555EF4 C82FA3AE1CBEDC6BE46B9360C43CEC45C17AB93C 108F52B48DB57BB0CC439B2997B01419BD92F80A A363A499291CBBC940DD62E41F10027AF002F8B0 ; do gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys "$key" || gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key" ; done && curl -fsSLO --compressed "https://nodejs.org/dist/v$NODE_VERSION/node-v$NODE_VERSION-linux-$ARCH.tar.xz" && curl -fsSLO --compressed "https://nodejs.org/dist/v$NODE_VERSION/SHASUMS256.txt.asc" && gpg --batch --decrypt --output SHASUMS256.txt SHASUMS256.txt.asc && gpgconf --kill all && rm -rf "$GNUPGHOME" && grep " node-v$NODE_VERSION-linux-$ARCH.tar.xz\$" SHASUMS256.txt | sha256sum -c - && tar -xJf "node-v$NODE_VERSION-linux-$ARCH.tar.xz" -C /usr/local --strip-components=1 --no-same-owner && rm "node-v$NODE_VERSION-linux-$ARCH.tar.xz" SHASUMS256.txt.asc SHASUMS256.txt && ln -s /usr/local/bin/node /usr/local/bin/nodejs && node --version && npm --version # buildkit
# Mon, 03 Mar 2025 18:37:38 GMT
ENV YARN_VERSION=1.22.22
# Mon, 03 Mar 2025 18:37:38 GMT
RUN set -ex && export GNUPGHOME="$(mktemp -d)" && for key in 6A010C5166006599AA17F08146C2130DFD2497F5 ; do gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys "$key" || gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key" ; done && curl -fsSLO --compressed "https://yarnpkg.com/downloads/$YARN_VERSION/yarn-v$YARN_VERSION.tar.gz" && curl -fsSLO --compressed "https://yarnpkg.com/downloads/$YARN_VERSION/yarn-v$YARN_VERSION.tar.gz.asc" && gpg --batch --verify yarn-v$YARN_VERSION.tar.gz.asc yarn-v$YARN_VERSION.tar.gz && gpgconf --kill all && rm -rf "$GNUPGHOME" && mkdir -p /opt && tar -xzf yarn-v$YARN_VERSION.tar.gz -C /opt/ && ln -s /opt/yarn-v$YARN_VERSION/bin/yarn /usr/local/bin/yarn && ln -s /opt/yarn-v$YARN_VERSION/bin/yarnpkg /usr/local/bin/yarnpkg && rm yarn-v$YARN_VERSION.tar.gz.asc yarn-v$YARN_VERSION.tar.gz && yarn --version && rm -rf /tmp/* # buildkit
# Mon, 03 Mar 2025 18:37:38 GMT
COPY docker-entrypoint.sh /usr/local/bin/ # buildkit
# Mon, 03 Mar 2025 18:37:38 GMT
ENTRYPOINT ["docker-entrypoint.sh" ]
# Mon, 03 Mar 2025 18:37:38 GMT
CMD ["node" ]
# Mon, 03 Mar 2025 18:37:38 GMT
LABEL org.opencontainers.image.title=Unit (node20)
# Mon, 03 Mar 2025 18:37:38 GMT
LABEL org.opencontainers.image.description=Official build of Unit for Docker.
# Mon, 03 Mar 2025 18:37:38 GMT
LABEL org.opencontainers.image.url=https://unit.nginx.org
# Mon, 03 Mar 2025 18:37:38 GMT
LABEL org.opencontainers.image.source=https://github.com/nginx/unit
# Mon, 03 Mar 2025 18:37:38 GMT
LABEL org.opencontainers.image.documentation=https://unit.nginx.org/installation/#docker-images
# Mon, 03 Mar 2025 18:37:38 GMT
LABEL org.opencontainers.image.vendor=NGINX Docker Maintainers <[email protected] >
# Mon, 03 Mar 2025 18:37:38 GMT
LABEL org.opencontainers.image.version=1.34.2
# Mon, 03 Mar 2025 18:37:38 GMT
RUN set -ex && savedAptMark="$(apt-mark showmanual)" && apt-get update && apt-get install --no-install-recommends --no-install-suggests -y ca-certificates git build-essential libssl-dev libpcre2-dev curl pkg-config libclang-dev cmake && export RUST_VERSION=1.83.0 && export RUSTUP_HOME=/usr/src/unit/rustup && export CARGO_HOME=/usr/src/unit/cargo && export PATH=/usr/src/unit/cargo/bin:$PATH && dpkgArch="$(dpkg --print-architecture)" && case "${dpkgArch##*-}" in amd64) rustArch="x86_64-unknown-linux-gnu"; rustupSha256="6aeece6993e902708983b209d04c0d1dbb14ebb405ddb87def578d41f920f56d" ;; arm64) rustArch="aarch64-unknown-linux-gnu"; rustupSha256="1cffbf51e63e634c746f741de50649bbbcbd9dbe1de363c9ecef64e278dba2b2" ;; *) echo >&2 "unsupported architecture: ${dpkgArch}"; exit 1 ;; esac && url="https://static.rust-lang.org/rustup/archive/1.27.1/${rustArch}/rustup-init" && curl -L -O "$url" && echo "${rustupSha256} *rustup-init" | sha256sum -c - && chmod +x rustup-init && ./rustup-init -y --no-modify-path --profile minimal --default-toolchain $RUST_VERSION --default-host ${rustArch} && rm rustup-init && rustup --version && cargo --version && rustc --version && mkdir -p /usr/lib/unit/modules /usr/lib/unit/debug-modules && mkdir -p /usr/src/unit && cd /usr/src/unit && git clone --depth 1 -b 1.34.2-1 https://github.com/nginx/unit && cd unit && NCPU="$(getconf _NPROCESSORS_ONLN)" && DEB_HOST_MULTIARCH="$(dpkg-architecture -q DEB_HOST_MULTIARCH)" && CC_OPT="$(DEB_BUILD_MAINT_OPTIONS="hardening=+all,-pie" DEB_CFLAGS_MAINT_APPEND="-Wp,-D_FORTIFY_SOURCE=2 -fPIC" dpkg-buildflags --get CFLAGS)" && LD_OPT="$(DEB_BUILD_MAINT_OPTIONS="hardening=+all,-pie" DEB_LDFLAGS_MAINT_APPEND="-Wl,--as-needed -pie" dpkg-buildflags --get LDFLAGS)" && CONFIGURE_ARGS_MODULES="--prefix=/usr --statedir=/var/lib/unit --control=unix:/var/run/control.unit.sock --runstatedir=/var/run --pid=/var/run/unit.pid --logdir=/var/log --log=/var/log/unit.log --tmpdir=/var/tmp --user=unit --group=unit --openssl --libdir=/usr/lib/$DEB_HOST_MULTIARCH" && CONFIGURE_ARGS="$CONFIGURE_ARGS_MODULES --njs --otel" && make -j $NCPU -C pkg/contrib .njs && export PKG_CONFIG_PATH=$(pwd)/pkg/contrib/njs/build && ./configure $CONFIGURE_ARGS --cc-opt="$CC_OPT" --ld-opt="$LD_OPT" --modulesdir=/usr/lib/unit/debug-modules --debug && make -j $NCPU unitd && install -pm755 build/sbin/unitd /usr/sbin/unitd-debug && make clean && ./configure $CONFIGURE_ARGS --cc-opt="$CC_OPT" --ld-opt="$LD_OPT" --modulesdir=/usr/lib/unit/modules && make -j $NCPU unitd && install -pm755 build/sbin/unitd /usr/sbin/unitd && make clean && npm -g install node-gyp && ./configure $CONFIGURE_ARGS_MODULES --cc-opt="$CC_OPT" --modulesdir=/usr/lib/unit/debug-modules --debug && ./configure nodejs --node-gyp=/usr/local/bin/node-gyp && make -j $NCPU node node-install libunit-install && make clean && ./configure $CONFIGURE_ARGS_MODULES --cc-opt="$CC_OPT" --modulesdir=/usr/lib/unit/modules && ./configure nodejs --node-gyp=/usr/local/bin/node-gyp && make -j $NCPU node node-install libunit-install && cd && rm -rf /usr/src/unit && for f in /usr/sbin/unitd /usr/lib/unit/modules/*.unit.so; do ldd $f | awk '/=>/{print $(NF-1)}' | while read n; do dpkg-query -S $n; done | sed 's/^\([^:]\+\):.*$/\1/' | sort | uniq >> /requirements.apt; done && apt-mark showmanual | xargs apt-mark auto > /dev/null && { [ -z "$savedAptMark" ] || apt-mark manual $savedAptMark; } && rm -rf /root/.cache/ && rm -rf /root/.npm && mkdir -p /var/lib/unit/ && mkdir -p /docker-entrypoint.d/ && groupadd --gid 999 unit && useradd --uid 999 --gid unit --no-create-home --home /nonexistent --comment "unit user" --shell /bin/false unit && apt-get update && apt-get --no-install-recommends --no-install-suggests -y install curl $(cat /requirements.apt) && apt-get purge -y --auto-remove build-essential && rm -rf /var/lib/apt/lists/* && rm -f /requirements.apt && ln -sf /dev/stderr /var/log/unit.log # buildkit
# Mon, 03 Mar 2025 18:37:38 GMT
COPY docker-entrypoint.sh /usr/local/bin/ # buildkit
# Mon, 03 Mar 2025 18:37:38 GMT
COPY welcome.* /usr/share/unit/welcome/ # buildkit
# Mon, 03 Mar 2025 18:37:38 GMT
STOPSIGNAL SIGTERM
# Mon, 03 Mar 2025 18:37:38 GMT
ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh" ]
# Mon, 03 Mar 2025 18:37:38 GMT
EXPOSE map[80/tcp:{}]
# Mon, 03 Mar 2025 18:37:38 GMT
CMD ["unitd" "--no-daemon" "--control" "unix:/var/run/control.unit.sock" ]
Layers:
sha256:545aa82ec479fb0ff3a196141d43d14e5ab1bd1098048223bfd21e505b70581f
Last Modified: Mon, 17 Mar 2025 22:17:15 GMT
Size: 48.3 MB (48304855 bytes)
MIME: application/vnd.oci.image.layer.v1.tar+gzip
sha256:4378a6c11dea5043896b9425853a850807e5845b0018fe01ddee56c16245fc3c
Last Modified: Tue, 18 Mar 2025 05:00:37 GMT
Size: 23.5 MB (23544349 bytes)
MIME: application/vnd.oci.image.layer.v1.tar+gzip
sha256:140d15be2fea6dcd21c20cadae2601a118c08a938168718b2612ad6aca91f74a
Last Modified: Tue, 18 Mar 2025 13:13:07 GMT
Size: 64.4 MB (64355791 bytes)
MIME: application/vnd.oci.image.layer.v1.tar+gzip
sha256:1d9d474cce081e468bc6f85727459852112ba732fbbfe3236fae66c5fa8a5ed5
Last Modified: Tue, 18 Mar 2025 14:10:35 GMT
Size: 202.8 MB (202753988 bytes)
MIME: application/vnd.oci.image.layer.v1.tar+gzip
sha256:ca40eb2cc73fc2704dd2208892f99c26439678f8e695b4352f91dd36fa7a1390
Last Modified: Tue, 18 Mar 2025 19:02:11 GMT
Size: 3.3 KB (3323 bytes)
MIME: application/vnd.oci.image.layer.v1.tar+gzip
sha256:d8e77eeb24adb671ea6e42c1e9c56466638e340d9adb01d78018fca6b4bfaa5f
Last Modified: Tue, 18 Mar 2025 19:37:39 GMT
Size: 48.6 MB (48579206 bytes)
MIME: application/vnd.oci.image.layer.v1.tar+gzip
sha256:eaefe43eb0ea99aafe6b975d98d4a7f350da2c778e8b5cafe4a6acd5690908c3
Last Modified: Tue, 18 Mar 2025 19:37:38 GMT
Size: 1.3 MB (1250673 bytes)
MIME: application/vnd.oci.image.layer.v1.tar+gzip
sha256:cef1896c5ff1a561d7022134a43eb8fe0ecf01c280126c821757179917cc1209
Last Modified: Tue, 18 Mar 2025 19:37:37 GMT
Size: 445.0 B
MIME: application/vnd.oci.image.layer.v1.tar+gzip
sha256:77cf64912634df30e6fe513b30df2a42e0ddc92dff2d5ebb2cb3c6b4fb71ca7a
Last Modified: Wed, 19 Mar 2025 01:52:02 GMT
Size: 23.6 MB (23617876 bytes)
MIME: application/vnd.oci.image.layer.v1.tar+gzip
sha256:1b66ef25cae2d60aa8346fa81058ec195e7ed8bb3ec826751baacdf80e1d1e28
Last Modified: Wed, 19 Mar 2025 01:52:01 GMT
Size: 1.3 KB (1269 bytes)
MIME: application/vnd.oci.image.layer.v1.tar+gzip
sha256:a70571e23336ed56fdc395dc4fa081a881c5972c3cf778d6c0f23222315c3f7c
Last Modified: Wed, 19 Mar 2025 01:52:01 GMT
Size: 1.5 KB (1453 bytes)
MIME: application/vnd.oci.image.layer.v1.tar+gzip
unit:node20
- unknown; unknown
$ docker pull unit@sha256:cf7b0090c6154f01a9bb57fd550fc8ec7ab1ddb068431777ff21eabd95b32ba8
Manifest MIME: application/vnd.docker.distribution.manifest.v2+json
Total Size: 28.7 KB (28693 bytes)
(compressed transfer size, not on-disk size)
Image ID: sha256:b5e4c2528dc6f5d75963cd1903e956ee20653d3a5b1e389ed6cc9c340becd64f
Layers:
sha256:734dae13ad6d97dbccca4d4cc7a156ef0b10f437ec0c46332df64651c2e25ba3
Last Modified: Wed, 19 Mar 2025 01:52:00 GMT
Size: 28.7 KB (28693 bytes)
MIME: application/vnd.in-toto+json