$ docker pull unit@sha256:33b9ab6ed16641a4c2eb7dd826e62d0276b8d2d1bd3b77c346fbde22788874ef
Manifest MIME: application/vnd.oci.image.index.v1+json
Platforms: 4
linux; amd64
unknown; unknown
linux; arm64 variant v8
unknown; unknown
$ docker pull unit@sha256:40cb406a25960273433cc05325ad109a4e83a157e9d3704031a3e0e7558b9db5
Manifest MIME: application/vnd.docker.distribution.manifest.v2+json
Total Size: 407.9 MB (407884714 bytes)
(compressed transfer size, not on-disk size)
Image ID: sha256:65d9363124fbc1f8ff2aae1e3674de2034bfbc026d6e1f2b520816e38cd7bef0
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
# Fri, 14 Feb 2025 22:16:24 GMT
RUN set -eux; mkdir -p /usr/local/etc; echo 'gem: --no-document' >> /usr/local/etc/gemrc # buildkit
# Fri, 14 Feb 2025 22:16:24 GMT
ENV LANG=C.UTF-8
# Fri, 14 Feb 2025 22:16:24 GMT
ENV RUBY_VERSION=3.3.7
# Fri, 14 Feb 2025 22:16:24 GMT
ENV RUBY_DOWNLOAD_URL=https://cache.ruby-lang.org/pub/ruby/3.3/ruby-3.3.7.tar.xz
# Fri, 14 Feb 2025 22:16:24 GMT
ENV RUBY_DOWNLOAD_SHA256=5dbcbc605e0ed4b09c52703241577eb7edc3a2dc747e184c72b5285719b6ad72
# Fri, 14 Feb 2025 22:16:24 GMT
RUN set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends dpkg-dev libgdbm-dev ruby ; rustArch=; dpkgArch="$(dpkg --print-architecture)"; case "$dpkgArch" in 'amd64') rustArch='x86_64-unknown-linux-gnu'; rustupUrl='https://static.rust-lang.org/rustup/archive/1.27.1/x86_64-unknown-linux-gnu/rustup-init'; rustupSha256='6aeece6993e902708983b209d04c0d1dbb14ebb405ddb87def578d41f920f56d' ;; 'arm64') rustArch='aarch64-unknown-linux-gnu'; rustupUrl='https://static.rust-lang.org/rustup/archive/1.27.1/aarch64-unknown-linux-gnu/rustup-init'; rustupSha256='1cffbf51e63e634c746f741de50649bbbcbd9dbe1de363c9ecef64e278dba2b2' ;; esac; if [ -n "$rustArch" ]; then mkdir -p /tmp/rust; wget -O /tmp/rust/rustup-init "$rustupUrl"; echo "$rustupSha256 */tmp/rust/rustup-init" | sha256sum --check --strict; chmod +x /tmp/rust/rustup-init; export RUSTUP_HOME='/tmp/rust/rustup' CARGO_HOME='/tmp/rust/cargo'; export PATH="$CARGO_HOME/bin:$PATH"; /tmp/rust/rustup-init -y --no-modify-path --profile minimal --default-toolchain '1.84.0' --default-host "$rustArch"; rustc --version; cargo --version; fi; wget -O ruby.tar.xz "$RUBY_DOWNLOAD_URL"; echo "$RUBY_DOWNLOAD_SHA256 *ruby.tar.xz" | sha256sum --check --strict; mkdir -p /usr/src/ruby; tar -xJf ruby.tar.xz -C /usr/src/ruby --strip-components=1; rm ruby.tar.xz; cd /usr/src/ruby; autoconf; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; ./configure --build="$gnuArch" --disable-install-doc --enable-shared ${rustArch:+--enable-yjit} ; make -j "$(nproc)"; make install; rm -rf /tmp/rust; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark > /dev/null; find /usr/local -type f -executable -not \( -name '*tkinter*' \) -exec ldd '{}' ';' | awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); printf "*%s\n", so }' | sort -u | xargs -r dpkg-query --search | cut -d: -f1 | sort -u | xargs -r apt-mark manual ; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; rm -rf /var/lib/apt/lists/*; cd /; rm -r /usr/src/ruby; if dpkg -l | grep -i ruby; then exit 1; fi; [ "$(command -v ruby)" = '/usr/local/bin/ruby' ]; ruby --version; gem --version; bundle --version # buildkit
# Fri, 14 Feb 2025 22:16:24 GMT
ENV GEM_HOME=/usr/local/bundle
# Fri, 14 Feb 2025 22:16:24 GMT
ENV BUNDLE_SILENCE_ROOT_WARNING=1 BUNDLE_APP_CONFIG=/usr/local/bundle
# Fri, 14 Feb 2025 22:16:24 GMT
ENV PATH=/usr/local/bundle/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
# Fri, 14 Feb 2025 22:16:24 GMT
RUN set -eux; mkdir "$GEM_HOME" ; chmod 1777 "$GEM_HOME" # buildkit
# Fri, 14 Feb 2025 22:16:24 GMT
CMD ["irb" ]
# Mon, 03 Mar 2025 18:37:38 GMT
LABEL org.opencontainers.image.title=Unit (ruby3.3)
# 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 && /bin/true && ./configure $CONFIGURE_ARGS_MODULES --cc-opt="$CC_OPT" --modulesdir=/usr/lib/unit/debug-modules --debug && ./configure ruby && make -j $NCPU ruby-install && make clean && ./configure $CONFIGURE_ARGS_MODULES --cc-opt="$CC_OPT" --modulesdir=/usr/lib/unit/modules && ./configure ruby && make -j $NCPU ruby-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; } && gem install rack && rm -rf /root/.local && 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:377942c9e4a3c47ef1ecfd08aaa98a7d66f9d87779055dd879a9ff83fbbcf042
Last Modified: Tue, 18 Mar 2025 03:29:54 GMT
Size: 188.0 B
MIME: application/vnd.oci.image.layer.v1.tar+gzip
sha256:3ff5930c88436946a83a4c96aedfd6acf64224d43d6ed7d6fdad398c6393100c
Last Modified: Tue, 18 Mar 2025 03:29:55 GMT
Size: 37.8 MB (37810776 bytes)
MIME: application/vnd.oci.image.layer.v1.tar+gzip
sha256:ce039c42bfe47c510dae707907c4cc2a8c0dc16cf7f5874dce0693d9bcdf9bc5
Last Modified: Tue, 18 Mar 2025 03:29:54 GMT
Size: 143.0 B
MIME: application/vnd.oci.image.layer.v1.tar+gzip
sha256:b54961527d1c2cd3b38541e831d192c3b80bd5717334f5c512760f31206be84f
Last Modified: Tue, 18 Mar 2025 04:14:33 GMT
Size: 21.8 MB (21842861 bytes)
MIME: application/vnd.oci.image.layer.v1.tar+gzip
sha256:2307dd5e0c6a0bfdc09264fd5cf0cd30fbc2acbedbcd15e86a822920a6853db5
Last Modified: Tue, 18 Mar 2025 04:14:33 GMT
Size: 1.3 KB (1269 bytes)
MIME: application/vnd.oci.image.layer.v1.tar+gzip
sha256:20daf6d9c31c40f4b3b526525664c33768c683bd8409565c9b782fdff435e8c2
Last Modified: Tue, 18 Mar 2025 04:14:33 GMT
Size: 1.5 KB (1453 bytes)
MIME: application/vnd.oci.image.layer.v1.tar+gzip
unit:ruby
- unknown; unknown
$ docker pull unit@sha256:fd09a9b9d48ce48afc69fcace8c13cbef22e36037cb7dbbaba957d4c49882da2
Manifest MIME: application/vnd.docker.distribution.manifest.v2+json
Total Size: 28.5 KB (28536 bytes)
(compressed transfer size, not on-disk size)
Image ID: sha256:a7eb94df010ca9cf4f1387069c6ea215166163beec888ce4d654153c782f826e
Layers:
sha256:a6b87bb3a0370f5af20836ac5c0b844e4757465767873407f27d896a133543a4
Last Modified: Tue, 18 Mar 2025 04:14:33 GMT
Size: 28.5 KB (28536 bytes)
MIME: application/vnd.in-toto+json
unit:ruby
- linux; arm64 variant v8
$ docker pull unit@sha256:ca84ee7a3a0c173d36816f0505b8295a5ec9159710bec6fea79c851085b8005c
Manifest MIME: application/vnd.docker.distribution.manifest.v2+json
Total Size: 398.0 MB (397957722 bytes)
(compressed transfer size, not on-disk size)
Image ID: sha256:34558a56f1b365b959c38ea863c7bcfafdad478738a943d4899d9c38379716f0
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
# Fri, 14 Feb 2025 22:16:24 GMT
RUN set -eux; mkdir -p /usr/local/etc; echo 'gem: --no-document' >> /usr/local/etc/gemrc # buildkit
# Fri, 14 Feb 2025 22:16:24 GMT
ENV LANG=C.UTF-8
# Fri, 14 Feb 2025 22:16:24 GMT
ENV RUBY_VERSION=3.3.7
# Fri, 14 Feb 2025 22:16:24 GMT
ENV RUBY_DOWNLOAD_URL=https://cache.ruby-lang.org/pub/ruby/3.3/ruby-3.3.7.tar.xz
# Fri, 14 Feb 2025 22:16:24 GMT
ENV RUBY_DOWNLOAD_SHA256=5dbcbc605e0ed4b09c52703241577eb7edc3a2dc747e184c72b5285719b6ad72
# Fri, 14 Feb 2025 22:16:24 GMT
RUN set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends dpkg-dev libgdbm-dev ruby ; rustArch=; dpkgArch="$(dpkg --print-architecture)"; case "$dpkgArch" in 'amd64') rustArch='x86_64-unknown-linux-gnu'; rustupUrl='https://static.rust-lang.org/rustup/archive/1.27.1/x86_64-unknown-linux-gnu/rustup-init'; rustupSha256='6aeece6993e902708983b209d04c0d1dbb14ebb405ddb87def578d41f920f56d' ;; 'arm64') rustArch='aarch64-unknown-linux-gnu'; rustupUrl='https://static.rust-lang.org/rustup/archive/1.27.1/aarch64-unknown-linux-gnu/rustup-init'; rustupSha256='1cffbf51e63e634c746f741de50649bbbcbd9dbe1de363c9ecef64e278dba2b2' ;; esac; if [ -n "$rustArch" ]; then mkdir -p /tmp/rust; wget -O /tmp/rust/rustup-init "$rustupUrl"; echo "$rustupSha256 */tmp/rust/rustup-init" | sha256sum --check --strict; chmod +x /tmp/rust/rustup-init; export RUSTUP_HOME='/tmp/rust/rustup' CARGO_HOME='/tmp/rust/cargo'; export PATH="$CARGO_HOME/bin:$PATH"; /tmp/rust/rustup-init -y --no-modify-path --profile minimal --default-toolchain '1.84.0' --default-host "$rustArch"; rustc --version; cargo --version; fi; wget -O ruby.tar.xz "$RUBY_DOWNLOAD_URL"; echo "$RUBY_DOWNLOAD_SHA256 *ruby.tar.xz" | sha256sum --check --strict; mkdir -p /usr/src/ruby; tar -xJf ruby.tar.xz -C /usr/src/ruby --strip-components=1; rm ruby.tar.xz; cd /usr/src/ruby; autoconf; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; ./configure --build="$gnuArch" --disable-install-doc --enable-shared ${rustArch:+--enable-yjit} ; make -j "$(nproc)"; make install; rm -rf /tmp/rust; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark > /dev/null; find /usr/local -type f -executable -not \( -name '*tkinter*' \) -exec ldd '{}' ';' | awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); printf "*%s\n", so }' | sort -u | xargs -r dpkg-query --search | cut -d: -f1 | sort -u | xargs -r apt-mark manual ; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; rm -rf /var/lib/apt/lists/*; cd /; rm -r /usr/src/ruby; if dpkg -l | grep -i ruby; then exit 1; fi; [ "$(command -v ruby)" = '/usr/local/bin/ruby' ]; ruby --version; gem --version; bundle --version # buildkit
# Fri, 14 Feb 2025 22:16:24 GMT
ENV GEM_HOME=/usr/local/bundle
# Fri, 14 Feb 2025 22:16:24 GMT
ENV BUNDLE_SILENCE_ROOT_WARNING=1 BUNDLE_APP_CONFIG=/usr/local/bundle
# Fri, 14 Feb 2025 22:16:24 GMT
ENV PATH=/usr/local/bundle/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
# Fri, 14 Feb 2025 22:16:24 GMT
RUN set -eux; mkdir "$GEM_HOME" ; chmod 1777 "$GEM_HOME" # buildkit
# Fri, 14 Feb 2025 22:16:24 GMT
CMD ["irb" ]
# Mon, 03 Mar 2025 18:37:38 GMT
LABEL org.opencontainers.image.title=Unit (ruby3.3)
# 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 && /bin/true && ./configure $CONFIGURE_ARGS_MODULES --cc-opt="$CC_OPT" --modulesdir=/usr/lib/unit/debug-modules --debug && ./configure ruby && make -j $NCPU ruby-install && make clean && ./configure $CONFIGURE_ARGS_MODULES --cc-opt="$CC_OPT" --modulesdir=/usr/lib/unit/modules && ./configure ruby && make -j $NCPU ruby-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; } && gem install rack && rm -rf /root/.local && 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:657cfd5e9f0a7d40f0fa2b4ba2efb58580158a5cf671fa5f967f6a59b8ef5ccf
Last Modified: Tue, 18 Mar 2025 19:26:21 GMT
Size: 190.0 B
MIME: application/vnd.oci.image.layer.v1.tar+gzip
sha256:372fd6c388814b96bf690942f416b0b6d447ca6db0c29d8862e9cdb942e11f57
Last Modified: Tue, 18 Mar 2025 19:43:34 GMT
Size: 37.8 MB (37784815 bytes)
MIME: application/vnd.oci.image.layer.v1.tar+gzip
sha256:24d7e78916c999aa4d0e186613b004042139fa86ee46094f0549525e17bdc165
Last Modified: Tue, 18 Mar 2025 19:43:33 GMT
Size: 144.0 B
MIME: application/vnd.oci.image.layer.v1.tar+gzip
sha256:37eafb2b2d9bb90ed1d7529411a1ae0834edf65da20936149a2c0c8a3846ac4a
Last Modified: Wed, 19 Mar 2025 02:04:15 GMT
Size: 21.2 MB (21210865 bytes)
MIME: application/vnd.oci.image.layer.v1.tar+gzip
sha256:3c62a38125380dd73cc9c5d81aa68923fd0dc7ad884069c868218ae7cd8a9b95
Last Modified: Wed, 19 Mar 2025 02:04:13 GMT
Size: 1.3 KB (1272 bytes)
MIME: application/vnd.oci.image.layer.v1.tar+gzip
sha256:b6b5e4ac038bcd3ab5cf50e23b005072d020c8035db2876ce5e8bce2682b50a0
Last Modified: Wed, 19 Mar 2025 02:04:13 GMT
Size: 1.5 KB (1453 bytes)
MIME: application/vnd.oci.image.layer.v1.tar+gzip
unit:ruby
- unknown; unknown
$ docker pull unit@sha256:5df1f0a5d3a20b3696b80ebfa279bf9ee2133cbe0d90969a15460e3b81e18df7
Manifest MIME: application/vnd.docker.distribution.manifest.v2+json
Total Size: 28.6 KB (28640 bytes)
(compressed transfer size, not on-disk size)
Image ID: sha256:302c6494df18085b1c59eb980e72a3226e5cd8f0d2dbb5c09b3e53c148673a29
Layers:
sha256:e38673bf70a16c40e9c034245a9a20200f5eb36a79f2bf8b5189f05435bf2f78
Last Modified: Wed, 19 Mar 2025 02:04:13 GMT
Size: 28.6 KB (28640 bytes)
MIME: application/vnd.in-toto+json