• Joined on 2026-05-09

wpic-task/app (v1.0.5)

Published 2026-08-27 09:16:39 +00:00 by nz

Installation

docker pull repo.wpic-eservice.com/nz/wpic-task/app:v1.0.5
sha256:a84beeef50569dc1cb6e86aa368d390f08849bec588e99a309a8310630eea400

About this package

The modern PHP app server

Image Layers

# debian.sh --arch 'amd64' out/ 'trixie' '@1785715200'
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.33
ENV PHP_URL=https://www.php.net/distributions/php-8.3.33.tar.xz PHP_ASC_URL=https://www.php.net/distributions/php-8.3.33.tar.xz.asc
ENV PHP_SHA256=e293ed620cec74651bb4a071317892a478aa6840fab22db45c72d77cd42f9676
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; 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 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"
ARG BUILD_TAG BUILD_TIME TIMEZONE
ENV TZ=${TIMEZONE}
|3 BUILD_TAG=v1.0.5 BUILD_TIME=20260827 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/
|3 BUILD_TAG=v1.0.5 BUILD_TIME=20260827 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"
|3 BUILD_TAG=v1.0.5 BUILD_TIME=20260827 TIMEZONE=Asia/Shanghai /bin/sh -c ln -sf /usr/share/zoneinfo/${TIMEZONE} /etc/localtime && echo "${TIMEZONE}" > /etc/timezone
WORKDIR /var/www
COPY file:6b18113ea0f08295c6b6f34707d357cabbe84fe0515fb73ecfb8f372822285c8 in /usr/local/etc/php/conf.d/99-overrides.ini
COPY file:387131edbebd075e72c4a440899a3dab5ec396edf3766258fb9f9ba739a5fa35 in /etc/frankenphp/Caddyfile
COPY dir:3875245453a014b14815e4fc4bdfc55b29b56c6d1aa10753d272835b96f4c428 in ./vendor
COPY dir:e6a9b239f3aa45369643f29e8387ef5c23d7fb33f16f2589ed7f1e86d2293c17 in .
COPY dir:be3ef911dfc8e616976f8ab8e689cb553a438ecc01fe68f11e66253d7571fc79 in ./public/build
|3 BUILD_TAG=v1.0.5 BUILD_TIME=20260827 TIMEZONE=Asia/Shanghai /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
|3 BUILD_TAG=v1.0.5 BUILD_TIME=20260827 TIMEZONE=Asia/Shanghai /bin/sh -c composer dump-autoload --optimize
COPY file:1f16ac78b01ae11db00cc2e6b506efd9fb3c0c4da77915d306546d48a6fdc9f8 in /usr/local/bin/entrypoint.sh
|3 BUILD_TAG=v1.0.5 BUILD_TIME=20260827 TIMEZONE=Asia/Shanghai /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-08-06T14:59:36Z
org.opencontainers.image.description The modern PHP app server
org.opencontainers.image.licenses MIT
org.opencontainers.image.revision a765b086f5cc56f6b7753117367d56e1b0da948d
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.5
Details
Container
2026-08-27 09:16:39 +00:00
0
OCI / Docker
linux/amd64
MIT
420 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