Image | Cmd | Size |
53cb3014fd8 |
bash |
2 KB |
0122a6c3f75 |
CMD ["nginx" "-g" "daemon off;"] |
0 B |
c0c36413948 |
STOPSIGNAL SIGQUIT |
0 B |
37827ec2ac7 |
EXPOSE map[80/tcp:{}] |
0 B |
dbc7c8e9c8a |
ENTRYPOINT ["/docker-entrypoint.sh"] |
0 B |
bf4c8f3dbe7 |
COPY 30-tune-worker-processes.sh /docker-entrypoint.d # buildkit |
1 KB |
19703a32975 |
COPY 20-envsubst-on-templates.sh /docker-entrypoint.d # buildkit |
1 KB |
2cdbb0f416a |
COPY 15-local-resolvers.envsh /docker-entrypoint.d # buildkit |
365 B |
877b73e92b2 |
COPY 10-listen-on-ipv6-by-default.sh /docker-entrypoint.d # buildkit |
955 B |
feae939c0d4 |
COPY docker-entrypoint.sh / # buildkit |
628 B |
868b4869c2a |
RUN /bin/sh -c set -x &&
groupadd --system --gid 101 nginx &&
useradd --system --gid nginx --no-create-home --home /nonexistent --comment "nginx user" --shell /bin/false --uid 101 nginx &&
apt-get update &&
apt-get install --no-install-recommends --no-install-suggests -y gnupg1 ca-certificates &&
NGINX_GPGKEY=573BFD6B3D8FBC641079A6ABABF5BD827BD9BF62; NGINX_GPGKEY_PATH=/usr/share/keyrings/nginx-archive-keyring.gpg; export GNUPGHOME="$(mktemp -d)"; found=''; for server in hkp://keyserver.ubuntu.com:80 pgp.mit.edu ; do echo "Fetching GPG key $NGINX_GPGKEY from $server"; gpg1 --keyserver "$server" --keyserver-options timeout=10 --recv-keys "$NGINX_GPGKEY" &&
found=yes &&
break; done; test -z "$found" &&
echo >&2 "error: failed to fetch GPG key $NGINX_GPGKEY" &&
exit 1; gpg1 --export "$NGINX_GPGKEY" > "$NGINX_GPGKEY_PATH" ; rm -rf "$GNUPGHOME"; apt-get remove --purge --auto-remove -y gnupg1 &&
rm -rf /var/lib/apt/lists/* &&
dpkgArch="$(dpkg --print-architecture)" &&
nginxPackages=" nginx=${NGINX_VERSION}-${PKG_RELEASE} nginx-module-xslt=${NGINX_VERSION}-${PKG_RELEASE} nginx-module-geoip=${NGINX_VERSION}-${PKG_RELEASE} nginx-module-image-filter=${NGINX_VERSION}-${PKG_RELEASE} nginx-module-njs=${NGINX_VERSION}+${NJS_VERSION}-${PKG_RELEASE} " &&
case "$dpkgArch" in amd64|arm64) echo "deb [signed-by=$NGINX_GPGKEY_PATH] https://nginx.org/packages/mainline/debian/ bookworm nginx" >> /etc/apt/sources.list.d/nginx.list &&
apt-get update ;; *) echo "deb-src [signed-by=$NGINX_GPGKEY_PATH] https://nginx.org/packages/mainline/debian/ bookworm nginx" >> /etc/apt/sources.list.d/nginx.list &&
tempDir="$(mktemp -d)" &&
chmod 777 "$tempDir" &&
savedAptMark="$(apt-mark showmanual)" &&
apt-get update &&
apt-get build-dep -y $nginxPackages &&
( cd "$tempDir" &&
DEB_BUILD_OPTIONS="nocheck parallel=$(nproc)" apt-get source --compile $nginxPackages ) &&
apt-mark showmanual | xargs apt-mark auto > /dev/null &&
{ [ -z "$savedAptMark" ] || apt-mark manual $savedAptMark; } &&
ls -lAFh "$tempDir" &&
( cd "$tempDir" &&
dpkg-scanpackages . > Packages ) &&
grep '^Package: ' "$tempDir/Packages" &&
echo "deb [ trusted=yes ] file://$tempDir ./" > /etc/apt/sources.list.d/temp.list &&
apt-get -o Acquire::GzipIndexes=false update ;; esac &&
apt-get install --no-install-recommends --no-install-suggests -y $nginxPackages gettext-base curl &&
apt-get remove --purge --auto-remove -y &&
rm -rf /var/lib/apt/lists/* /etc/apt/sources.list.d/nginx.list &&
if [ -n "$tempDir" ]; then apt-get purge -y --auto-remove &&
rm -rf "$tempDir" /etc/apt/sources.list.d/temp.list; fi &&
ln -sf /dev/stdout /var/log/nginx/access.log &&
ln -sf /dev/stderr /var/log/nginx/error.log &&
mkdir /docker-entrypoint.d # buildkit |
41.4 MB |
c35c0c177d2 |
ENV PKG_RELEASE=1~bookworm |
0 B |
fb483deccad |
ENV NJS_VERSION=0.8.2 |
0 B |
fcfca77e44e |
ENV NGINX_VERSION=1.25.3 |
0 B |
df592cff5e9 |
LABEL maintainer=NGINX Docker Maintainers |
0 B |
55787f2fe2d |
/bin/sh -c #(nop) CMD ["bash"] |
0 B |
03a3c90bd80 |
/bin/sh -c #(nop) ADD file:ac3cd70031d35e46d86b876934946ffc8756de4de065fbc926dce642dac07ff3 in / |
29.1 MB |