Hickmeister
  • Joined on 2025-01-03

nginx-ui-php (latest)

Published 2025-04-20 11:36:36 +01:00 by Hickmeister

Installation

docker pull git.hickmeister.uk/hickmeister/nginx-ui-php:latest
sha256:af733a01c32c121de559d09fd24af2720090efe5037f9fe4d9e94998b5916b0b

About this package

Yet another WebUI for Nginx

Image Layers

# debian.sh --arch 'arm64' out/ 'bookworm' '@1742169600'
LABEL maintainer=NGINX Docker Maintainers <docker-maint@nginx.com>
ENV NGINX_VERSION=1.27.4
ENV NJS_VERSION=0.8.9
ENV NJS_RELEASE=1~bookworm
ENV PKG_RELEASE=1~bookworm
ENV DYNPKG_RELEASE=1~bookworm
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_GPGKEYS="573BFD6B3D8FBC641079A6ABABF5BD827BD9BF62 8540A6F18833A80E9C1653A42FD21310B49F6B46 9E9BE90EACBCDE69FE9B204CBCDCD8A38D88A2B3"; NGINX_GPGKEY_PATH=/etc/apt/keyrings/nginx-archive-keyring.gpg; export GNUPGHOME="$(mktemp -d)"; found=''; for NGINX_GPGKEY in $NGINX_GPGKEYS; do 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; done; gpg1 --export "$NGINX_GPGKEYS" > "$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}-${DYNPKG_RELEASE} nginx-module-geoip=${NGINX_VERSION}-${DYNPKG_RELEASE} nginx-module-image-filter=${NGINX_VERSION}-${DYNPKG_RELEASE} nginx-module-njs=${NGINX_VERSION}+${NJS_VERSION}-${NJS_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 ;; *) tempDir="$(mktemp -d)" && chmod 777 "$tempDir" && savedAptMark="$(apt-mark showmanual)" && apt-get update && apt-get install --no-install-recommends --no-install-suggests -y curl devscripts equivs git libxml2-utils lsb-release xsltproc && ( cd "$tempDir" && REVISION="${NGINX_VERSION}-${PKG_RELEASE}" && REVISION=${REVISION%~*} && curl -f -L -O https://github.com/nginx/pkg-oss/archive/${REVISION}.tar.gz && PKGOSSCHECKSUM="973690e64fa47e3704e817a3b08205b9e3f8c0cbe31825d9d62a81c11eb3aa186df015f27fdfd48c8799ffc528e38a9168c592ae665e4835c2d28638ec5f7845 *${REVISION}.tar.gz" && if [ "$(openssl sha512 -r ${REVISION}.tar.gz)" = "$PKGOSSCHECKSUM" ]; then echo "pkg-oss tarball checksum verification succeeded!"; else echo "pkg-oss tarball checksum verification failed!"; exit 1; fi && tar xzvf ${REVISION}.tar.gz && cd pkg-oss-${REVISION} && cd debian && for target in base module-geoip module-image-filter module-njs module-xslt; do make rules-$target; mk-build-deps --install --tool="apt-get -o Debug::pkgProblemResolver=yes --no-install-recommends --yes" debuild-$target/nginx-$NGINX_VERSION/debian/control; done && make base module-geoip module-image-filter module-njs module-xslt ) && 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
COPY docker-entrypoint.sh / # buildkit
COPY 10-listen-on-ipv6-by-default.sh /docker-entrypoint.d # buildkit
COPY 15-local-resolvers.envsh /docker-entrypoint.d # buildkit
COPY 20-envsubst-on-templates.sh /docker-entrypoint.d # buildkit
COPY 30-tune-worker-processes.sh /docker-entrypoint.d # buildkit
ENTRYPOINT ["/docker-entrypoint.sh"]
EXPOSE map[80/tcp:{}]
STOPSIGNAL SIGQUIT
CMD ["nginx" "-g" "daemon off;"]
ARG TARGETOS=linux
ARG TARGETARCH=arm64
ARG TARGETVARIANT=
ARG S6_OVERLAY_VERSION=3.1.6.2
ENV DEBIAN_FRONTEND=noninteractive
RUN |4 TARGETOS=linux TARGETARCH=arm64 TARGETVARIANT= S6_OVERLAY_VERSION=3.1.6.2 /bin/sh -c apt-get update -y && apt install -y --no-install-recommends wget xz-utils logrotate nginx-module-geoip && rm -rf /var/lib/apt/lists/* # buildkit
RUN |4 TARGETOS=linux TARGETARCH=arm64 TARGETVARIANT= S6_OVERLAY_VERSION=3.1.6.2 /bin/sh -c case "${TARGETARCH}/${TARGETVARIANT}" in "amd64/"*) S6_ARCH="x86_64" ;; "arm64/"*) S6_ARCH="aarch64" ;; "arm/v7"*) S6_ARCH="arm" ;; "arm/v6"*) S6_ARCH="arm" ;; "arm/v5"*) S6_ARCH="arm" ;; *) echo "Unsupported arch: ${TARGETARCH}/${TARGETVARIANT}" && exit 1 ;; esac && wget -O /tmp/s6-overlay-noarch.tar.xz https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/s6-overlay-noarch.tar.xz && tar -C / -Jxpf /tmp/s6-overlay-noarch.tar.xz && wget -O /tmp/s6-overlay-${S6_ARCH}.tar.xz https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/s6-overlay-${S6_ARCH}.tar.xz && tar -C / -Jxpf /tmp/s6-overlay-${S6_ARCH}.tar.xz && wget -O /tmp/s6-overlay-noarch.tar.xz https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/s6-overlay-noarch.tar.xz && tar -C / -Jxpf /tmp/s6-overlay-noarch.tar.xz # buildkit
COPY nginx-ui-base/nginx /etc/s6-overlay/s6-rc.d/nginx/run # buildkit
RUN |4 TARGETOS=linux TARGETARCH=arm64 TARGETVARIANT= S6_OVERLAY_VERSION=3.1.6.2 /bin/sh -c echo 'longrun' > /etc/s6-overlay/s6-rc.d/nginx/type && touch /etc/s6-overlay/s6-rc.d/user/contents.d/nginx # buildkit
RUN |4 TARGETOS=linux TARGETARCH=arm64 TARGETVARIANT= S6_OVERLAY_VERSION=3.1.6.2 /bin/sh -c mkdir -p /usr/local/etc && mkdir /etc/nginx/sites-available && mkdir /etc/nginx/sites-enabled && mkdir /etc/nginx/streams-available && mkdir /etc/nginx/streams-enabled && cp -r /etc/nginx /usr/local/etc/nginx # buildkit
COPY nginx-ui-base/init-config.up /etc/s6-overlay/s6-rc.d/init-config/up # buildkit
COPY nginx-ui-base/init-config.sh /etc/s6-overlay/s6-rc.d/init-config/init-config.sh # buildkit
RUN |4 TARGETOS=linux TARGETARCH=arm64 TARGETVARIANT= S6_OVERLAY_VERSION=3.1.6.2 /bin/sh -c chmod +x /etc/s6-overlay/s6-rc.d/init-config/init-config.sh && echo 'oneshot' > /etc/s6-overlay/s6-rc.d/init-config/type && touch /etc/s6-overlay/s6-rc.d/user/contents.d/init-config && mkdir -p /etc/s6-overlay/s6-rc.d/nginx/dependencies.d && touch /etc/s6-overlay/s6-rc.d/nginx/dependencies.d/init-config # buildkit
ENTRYPOINT ["/init"]
ARG TARGETOS=linux
ARG TARGETARCH=arm64
ARG TARGETVARIANT=
EXPOSE map[443/tcp:{} 80/tcp:{}]
ENV NGINX_UI_OFFICIAL_DOCKER=true
COPY resources/docker/nginx-ui.run /etc/s6-overlay/s6-rc.d/nginx-ui/run # buildkit
RUN |3 TARGETOS=linux TARGETARCH=arm64 TARGETVARIANT= /bin/sh -c echo 'longrun' > /etc/s6-overlay/s6-rc.d/nginx-ui/type && touch /etc/s6-overlay/s6-rc.d/user/contents.d/nginx-ui # buildkit
COPY resources/docker/nginx.conf /usr/local/etc/nginx/nginx.conf # buildkit
COPY resources/docker/nginx-ui.conf /usr/local/etc/nginx/conf.d/nginx-ui.conf # buildkit
COPY nginx-ui-linux-arm64/nginx-ui /usr/local/bin/nginx-ui # buildkit
RUN |3 TARGETOS=linux TARGETARCH=arm64 TARGETVARIANT= /bin/sh -c rm -f /etc/nginx/conf.d/default.conf && rm -f /usr/local/etc/nginx/conf.d/default.conf # buildkit
RUN |3 TARGETOS=linux TARGETARCH=arm64 TARGETVARIANT= /bin/sh -c rm -f /var/log/nginx/access.log && touch /var/log/nginx/access.log && rm -f /var/log/nginx/error.log && touch /var/log/nginx/error.log # buildkit
/bin/sh -c apt update && apt install -y php php-fpm php-cli php-curl php-mbstring php-mysql php-xml php-zip php-gd php-bcmath php-soap php-intl nano supervisor msmtp msmtp-mta unzip curl git && apt clean
/bin/sh -c sed -i 's/^;listen.owner = .*/listen.owner = nginx/' /etc/php/8.2/fpm/pool.d/www.conf && sed -i 's/^;listen.group = .*/listen.group = nginx/' /etc/php/8.2/fpm/pool.d/www.conf && sed -i 's/^;listen.mode = .*/listen.mode = 0660/' /etc/php/8.2/fpm/pool.d/www.conf && sed -i 's/^listen.owner = .*/listen.owner = nginx/' /etc/php/8.2/fpm/pool.d/www.conf && sed -i 's/^listen.group = .*/listen.group = nginx/' /etc/php/8.2/fpm/pool.d/www.conf && sed -i 's/^listen.mode = .*/listen.mode = 0660/' /etc/php/8.2/fpm/pool.d/www.conf
/bin/sh -c curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
COPY file:98597242032bb33f14d47da5de111e8ee989c1a2caee9f317e85e067b68309fb in /etc/supervisor/conf.d/supervisord.conf
CMD ["/usr/bin/supervisord"]

Labels

Key Value
maintainer NGINX Docker Maintainers <docker-maint@nginx.com>
org.opencontainers.image.created 2025-03-31T03:00:43.907Z
org.opencontainers.image.description Yet another WebUI for Nginx
org.opencontainers.image.licenses AGPL-3.0
org.opencontainers.image.revision ccfd40a6e0293de270a17f63673957cad9ae4872
org.opencontainers.image.source https://github.com/0xJacky/nginx-ui
org.opencontainers.image.title nginx-ui
org.opencontainers.image.url https://github.com/0xJacky/nginx-ui
org.opencontainers.image.version 2.0.0-rc.5
Details
Container
2025-04-20 11:36:36 +01:00
3
OCI / Docker
linux/arm64
AGPL-3.0
187 MiB
Versions (1) View all
latest 2025-04-20