• Joined on 2026-05-09

wpic-task/app (stable)

Published 2026-10-22 06:02:27 +00:00 by nz

Installation

docker pull repo.wpic-eservice.com/nz/wpic-task/app:stable
sha256:112c2d659c413896e19e4f938e199dcfab92294792fbd0e44dac9473490596e5

About this package

The modern PHP app server

Image Layers

# debian.sh --arch 'amd64' out/ 'trixie' '@1792531975'
RUN /bin/sh -c set -eux; { echo 'Package: php*'; echo 'Pin: release *'; echo 'Pin-Priority: -1'; } > /etc/apt/preferences.d/no-debian-php # buildkit
ENV PHPIZE_DEPS=autoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c
RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends $PHPIZE_DEPS ca-certificates curl xz-utils ; apt-get dist-clean # buildkit
ENV PHP_INI_DIR=/usr/local/etc/php
RUN /bin/sh -c set -eux; mkdir -p "$PHP_INI_DIR/conf.d"; [ ! -d /var/www/html ]; mkdir -p /var/www/html; chown www-data:www-data /var/www/html; chmod 1777 /var/www/html # buildkit
ENV PHP_CFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
ENV PHP_CPPFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
ENV PHP_LDFLAGS=-Wl,-O1 -pie
ENV GPG_KEYS=1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA
ENV PHP_VERSION=8.3.36
ENV PHP_URL=https://www.php.net/distributions/php-8.3.36.tar.xz PHP_ASC_URL=https://www.php.net/distributions/php-8.3.36.tar.xz.asc
ENV PHP_SHA256=dd54693aa334c5c4d72e9aee96b082c2473750a18a6c1d105789c93a3b1692fd
RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends gnupg; apt-get dist-clean; mkdir -p /usr/src; cd /usr/src; curl -fsSL -o php.tar.xz "$PHP_URL"; if [ -n "$PHP_SHA256" ]; then echo "$PHP_SHA256 *php.tar.xz" | sha256sum -c -; fi; curl -fsSL -o php.tar.xz.asc "$PHP_ASC_URL"; export GNUPGHOME="$(mktemp -d)"; for key in $GPG_KEYS; do gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key"; done; gpg --batch --verify php.tar.xz.asc php.tar.xz; gpgconf --kill all; rm -rf "$GNUPGHOME"; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark > /dev/null; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false # buildkit
COPY docker-php-source /usr/local/bin/ # buildkit
RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends libargon2-dev libcurl4-openssl-dev libonig-dev libreadline-dev libsodium-dev libsqlite3-dev libssl-dev libxml2-dev zlib1g-dev ; export CFLAGS="$PHP_CFLAGS" CPPFLAGS="$PHP_CPPFLAGS" LDFLAGS="$PHP_LDFLAGS" PHP_BUILD_PROVIDER='https://github.com/docker-library/php' PHP_UNAME='Linux - Docker' ; docker-php-source extract; cd /usr/src/php; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; if [ ! -d /usr/include/curl ]; then ln -sT "/usr/include/$debMultiarch/curl" /usr/local/include/curl; fi; case "$gnuArch" in 'i686-linux-'*) export CFLAGS="$CFLAGS -msse2 -mfpmath=sse" CPPFLAGS="$CPPFLAGS -msse2 -mfpmath=sse" ; ;; esac; test "$PHP_INI_DIR" != "${PHP_INI_DIR%/php}"; ./configure --build="$gnuArch" --sysconfdir="${PHP_INI_DIR%/php}" --with-config-file-path="$PHP_INI_DIR" --with-config-file-scan-dir="$PHP_INI_DIR/conf.d" --enable-option-checking=fatal --with-mhash --with-pic --enable-mbstring --enable-mysqlnd --with-password-argon2 --with-sodium=shared --with-pdo-sqlite=/usr --with-sqlite3=/usr --with-curl --with-iconv --with-openssl --with-readline --with-zlib --enable-phpdbg --enable-phpdbg-readline --with-pear --with-libdir="lib/$debMultiarch" --enable-embed --enable-zts --disable-zend-signals ; make -j "$(nproc)"; find -type f -name '*.a' -delete; make install; find /usr/local -type f -perm '/0111' -exec sh -euxc ' strip --strip-all "$@" || : ' -- '{}' + ; make clean; cp -v php.ini-* "$PHP_INI_DIR/"; cd /; docker-php-source delete; apt-mark auto '.*' > /dev/null; [ -z "$savedAptMark" ] || apt-mark manual $savedAptMark; find /usr/local -type f -executable -exec ldd '{}' ';' | awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); printf "*%s\n", so }' | sort -u | xargs -rt dpkg-query --search | awk 'sub(":$", "", $1) { print $1 }' | sort -u | xargs -r apt-mark manual ; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; apt-get dist-clean; pecl update-channels; rm -rf /tmp/pear ~/.pearrc; php --version # buildkit
COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ # buildkit
RUN /bin/sh -c docker-php-ext-enable opcache # buildkit
RUN /bin/sh -c docker-php-ext-enable sodium # buildkit
ENTRYPOINT ["docker-php-entrypoint"]
CMD ["php" "-a"]
WORKDIR /app
RUN /bin/sh -c apt-get update && apt-get -y --no-install-recommends install mailcap libcap2-bin && apt-get clean && rm -rf /var/lib/apt/lists/* /var/log/apt /var/log/dpkg.log /var/log/alternatives.log /var/cache/ldconfig/aux-cache # buildkit
RUN /bin/sh -c set -eux; mkdir -p /app/public /config/caddy /data/caddy /etc/caddy /etc/frankenphp; sed -i 's/php/frankenphp run/g' /usr/local/bin/docker-php-entrypoint # buildkit
COPY caddy/frankenphp/Caddyfile /etc/caddy/Caddyfile # buildkit
COPY package/content/index.php /app/public/index.php # buildkit
RUN /bin/sh -c ln /etc/caddy/Caddyfile /etc/frankenphp/Caddyfile && curl -sSLf -o /usr/local/bin/install-php-extensions https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions && chmod +x /usr/local/bin/install-php-extensions # buildkit
CMD ["--config" "/etc/frankenphp/Caddyfile" "--adapter" "caddyfile"]
HEALTHCHECK {Test:[CMD-SHELL curl -f http://localhost:2019/metrics || exit 1] Interval:0s Timeout:0s StartPeriod:0s StartInterval:0s Retries:0}
ENV XDG_CONFIG_HOME=/config
ENV XDG_DATA_HOME=/data
EXPOSE [80/tcp]
EXPOSE [443/tcp]
EXPOSE [443/udp]
EXPOSE [2019/tcp]
LABEL org.opencontainers.image.title=FrankenPHP
LABEL org.opencontainers.image.description=The modern PHP app server
LABEL org.opencontainers.image.url=https://frankenphp.dev
LABEL org.opencontainers.image.source=https://github.com/php/frankenphp
LABEL org.opencontainers.image.licenses=MIT
LABEL org.opencontainers.image.vendor=Kévin Dunglas
ENV GODEBUG=cgocheck=0
COPY /usr/local/lib/libwatcher* /usr/local/lib/ # buildkit
RUN /bin/sh -c apt-get install -y --no-install-recommends libstdc++6 && apt-get clean && ldconfig && rm -rf /var/log/apt /var/log/dpkg.log /var/log/alternatives.log /var/cache/ldconfig/aux-cache # buildkit
COPY /usr/local/bin/frankenphp /usr/local/bin/frankenphp # buildkit
RUN /bin/sh -c setcap cap_net_bind_service=+ep /usr/local/bin/frankenphp && frankenphp version && frankenphp build-info # buildkit
ARG TIMEZONE
ENV TZ=${TIMEZONE}
|1 TIMEZONE=Asia/Shanghai /bin/sh -c sed -i 's#http://deb.debian.org#https://mirrors.aliyun.com#g' /etc/apt/sources.list.d/debian.sources
COPY file:59d3f4fcac55842e591f3545355bdff531136861848d8887c5d301ba8ca65bf6 in /usr/local/bin/
|1 TIMEZONE=Asia/Shanghai /bin/sh -c IPE_GD_WITHOUTAVIF=1 install-php-extensions gd zip pdo_mysql intl xsl bcmath opcache pcntl && mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"
|1 TIMEZONE=Asia/Shanghai /bin/sh -c ln -sf /usr/share/zoneinfo/${TIMEZONE} /etc/localtime && echo "${TIMEZONE}" > /etc/timezone
WORKDIR /var/www
ARG BUILD_TAG
ARG BUILD_TAG BUILD_TIME
ENV BUILD_TAG=${BUILD_TAG} BUILD_TIME=${BUILD_TIME}
LABEL org.opencontainers.image.title="wpic-task-app" org.opencontainers.image.vendor="WPIC" org.opencontainers.image.version="${BUILD_TAG}" org.opencontainers.image.source="https://repo.wpic-eservice.com/nz/wpic-task"
COPY file:6b18113ea0f08295c6b6f34707d357cabbe84fe0515fb73ecfb8f372822285c8 in /usr/local/etc/php/conf.d/99-overrides.ini
COPY file:387131edbebd075e72c4a440899a3dab5ec396edf3766258fb9f9ba739a5fa35 in /etc/frankenphp/Caddyfile
COPY dir:8875026056fd6150f1b8229434873fed6c660d57b7021d463d3448c0b675b0ad in ./vendor
COPY dir:9f9ce6dc92ad9459439fa1741a3a6dc341019eb1afb33c016eed2bb201855098 in .
COPY dir:5595bdb0c52782edc57b68f527fbafa058e5ba5ea490d94591b5a61dae6db71c in ./public/build
|2 BUILD_TAG=v1.0.24 BUILD_TIME=20261022 /bin/sh -c mkdir -p storage/app/public storage/framework/cache/data storage/framework/sessions storage/framework/views storage/logs && mv composer /usr/local/bin/composer
|2 BUILD_TAG=v1.0.24 BUILD_TIME=20261022 /bin/sh -c composer dump-autoload --optimize
COPY file:43f1a83fe5ddde894a781d9d876e6bb6d79d69b56b321e611d3f36ab19d17fb2 in /usr/local/bin/entrypoint.sh
|2 BUILD_TAG=v1.0.24 BUILD_TIME=20261022 /bin/sh -c chmod +x /usr/local/bin/entrypoint.sh
EXPOSE 80
HEALTHCHECK --interval=30s --timeout=5s --start-period=60s --retries=3 CMD php -r "exit(@file_get_contents('http://127.0.0.1/healthz') === 'ok' ? 0 : 1);" || exit 1
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
CMD ["frankenphp", "run", "--config", "/etc/frankenphp/Caddyfile"]

Labels

Key Value
io.buildah.version 1.33.7
org.opencontainers.image.created 2026-10-21T18:02:54Z
org.opencontainers.image.description The modern PHP app server
org.opencontainers.image.licenses MIT
org.opencontainers.image.revision 0ad8a403a5c2eb13aacab92fffa6abc397157d10
org.opencontainers.image.source https://repo.wpic-eservice.com/nz/wpic-task
org.opencontainers.image.title wpic-task-app
org.opencontainers.image.url https://frankenphp.dev
org.opencontainers.image.vendor WPIC
org.opencontainers.image.version v1.0.24
Details
Container
2026-10-22 06:02:27 +00:00
34264
OCI / Docker
linux/amd64
MIT
261 MiB
Versions (25) View all
stable 2026-10-22
v1.0.24 2026-10-22
v1.0.23 2026-10-22
v1.0.22 2026-10-22
v1.0.21 2026-10-16