2024-04-18 21:17:33 UTC
168 MB
1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PHPIZE_DEPSautoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c
PHP_ASC_URLhttps://www.php.net/distributions/php-8.3.16.tar.xz.asc
PHP_CFLAGS-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
PHP_CPPFLAGS-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
PHP_INI_DIR/usr/local/etc/php
PHP_LDFLAGS-Wl,-O1 -pie
PHP_SHA25640d3b4e6cac33d3bcefe096d75a28d4fb4e3a9615eb20a4de55ba139fbfacdd5
PHP_URLhttps://www.php.net/distributions/php-8.3.16.tar.xz
PHP_VERSION8.3.16
YOURLS_SHA25662a95ba766d62f3305d75944cbfe12d5a90c08c88fbf2f6e67150d36412b916f
YOURLS_VERSION1.9.2
[#000] sha256:57fff88fb79736a903f46d7ab2546a9d83e4b9cf9032f766ea3c92eb06acbcca - 16.56% (27.8 MB)
[#001] sha256:14b77ae74d96b44694c3978486f6223ecdaca3a35f8491df05ab631de1ba763d - 0.0% (225 Bytes)
[#002] sha256:eaf7c720a1be2e279cdb4c99190c19b583dc84aa3eb97bc3ef0bcf008f8fe1c3 - 57.58% (96.8 MB)
[#003] sha256:a9117c9c0b51e4fc53b996948982ede47100d9f961128430c42ba06783cb46a7 - 0.0% (225 Bytes)
[#004] sha256:8c5e2ffe2ce4064a740070a469983769086595f78dfeac501c71e1e19645eed7 - 7.18% (12.1 MB)
[#005] sha256:0a06990b5d117feaf3cc70fc10750a5a4aacfea47db885b317b7bea50a5c8a4a - 0.0% (489 Bytes)
[#006] sha256:7a1ada38ee621fee2b4b3467498c68aee59c12496eb319093ca07ff6e8604ac6 - 16.07% (27 MB)
[#007] sha256:657d8ee194db42f3aa489760b552bffbe8ebde6eab419d2338feba5af76803ef - 0.0% (2.39 KB)
[#008] sha256:641c67557b8d3d2017a312fc68e12a972c87810df7e2432de25e696fdcab86c9 - 0.0% (245 Bytes)
[#009] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)
[#010] sha256:1ae690ffd19b01b74e2053065555e4d00a6f33f34f1d3dd89fe3c8e3540a9aa0 - 0.01% (8.97 KB)
[#011] sha256:79a4c1fcd30661b4ec978b7d6e0cc6988165660c1512b8172ba0575e086dd416 - 0.29% (495 KB)
[#012] sha256:1549d962a1047eb54b2b110acb4b61a3ee4b9177d58b9101175456fbab77c201 - 0.0% (324 Bytes)
[#013] sha256:3194772d7d4f6472671598ecc811ed53676fc86feec6938bf9a439105230ab00 - 2.31% (3.88 MB)
[#014] sha256:80ba37aa3711c939cbd4529dc201396921d1bb9b960aeebe599aeefcc35a9cbe - 0.0% (2 KB)
[#015] sha256:1333fff35a74a896152018f2440312aa2adf93a2ea1e48bbc0da116cf549f036 - 0.0% (1.65 KB)
# debian.sh --arch 'i386' out/ 'bookworm' '@1736726400'
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; { echo 'Package: php*'; echo 'Pin: release *'; echo 'Pin-Priority: -1'; } > /etc/apt/preferences.d/no-debian-php # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHPIZE_DEPS=autoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends $PHPIZE_DEPS ca-certificates curl xz-utils ; rm -rf /var/lib/apt/lists/* # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHP_INI_DIR=/usr/local/etc/php
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)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
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHP_CFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHP_CPPFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHP_LDFLAGS=-Wl,-O1 -pie
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV GPG_KEYS=1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHP_VERSION=8.3.16
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHP_URL=https://www.php.net/distributions/php-8.3.16.tar.xz PHP_ASC_URL=https://www.php.net/distributions/php-8.3.16.tar.xz.asc
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHP_SHA256=40d3b4e6cac33d3bcefe096d75a28d4fb4e3a9615eb20a4de55ba139fbfacdd5
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends gnupg; rm -rf /var/lib/apt/lists/*; 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; if [ -n "$PHP_ASC_URL" ]; then 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"; fi; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark > /dev/null; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)COPY docker-php-source /usr/local/bin/ # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)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; ./configure --build="$gnuArch" --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 --disable-phpdbg --with-pear --with-libdir="lib/$debMultiarch" --disable-cgi --enable-fpm --with-fpm-user=www-data --with-fpm-group=www-data ; 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 -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/*; pecl update-channels; rm -rf /tmp/pear ~/.pearrc; php --version # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c docker-php-ext-enable sodium # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-php-entrypoint"]
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)WORKDIR /var/www/html
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; cd /usr/local/etc; if [ -d php-fpm.d ]; then sed 's!=NONE/!=!g' php-fpm.conf.default | tee php-fpm.conf > /dev/null; cp php-fpm.d/www.conf.default php-fpm.d/www.conf; else mkdir php-fpm.d; cp php-fpm.conf.default php-fpm.d/www.conf; { echo '[global]'; echo 'include=etc/php-fpm.d/*.conf'; } | tee php-fpm.conf; fi; { echo '[global]'; echo 'error_log = /proc/self/fd/2'; echo; echo '; https://github.com/docker-library/php/pull/725#issuecomment-443540114'; echo 'log_limit = 8192'; echo; echo '[www]'; echo '; php-fpm closes STDOUT on startup, so sending logs to /proc/self/fd/1 does not work.'; echo '; https://bugs.php.net/bug.php?id=73886'; echo 'access.log = /proc/self/fd/2'; echo; echo 'clear_env = no'; echo; echo '; Ensure worker stdout and stderr are sent to the main error log.'; echo 'catch_workers_output = yes'; echo 'decorate_workers_output = no'; } | tee php-fpm.d/docker.conf; { echo '[global]'; echo 'daemonize = no'; echo; echo '[www]'; echo 'listen = 9000'; } | tee php-fpm.d/zz-docker.conf; mkdir -p "$PHP_INI_DIR/conf.d"; { echo '; https://github.com/docker-library/php/issues/878#issuecomment-938595965'; echo 'fastcgi.logging = Off'; } > "$PHP_INI_DIR/conf.d/docker-fpm.ini" # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGQUIT
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)EXPOSE map[9000/tcp:{}]
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)CMD ["php-fpm"]
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; docker-php-ext-install -j "$(nproc)" bcmath opcache pdo_mysql mysqli # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c { echo 'opcache.memory_consumption=128'; echo 'opcache.interned_strings_buffer=8'; echo 'opcache.max_accelerated_files=4000'; echo 'opcache.revalidate_freq=2'; echo 'opcache.fast_shutdown=1'; } > /usr/local/etc/php/conf.d/opcache-recommended.ini # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ARG YOURLS_VERSION=1.9.2
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ARG YOURLS_SHA256=62a95ba766d62f3305d75944cbfe12d5a90c08c88fbf2f6e67150d36412b916f
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV YOURLS_VERSION=1.9.2
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV YOURLS_SHA256=62a95ba766d62f3305d75944cbfe12d5a90c08c88fbf2f6e67150d36412b916f
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN |2 YOURLS_VERSION=1.9.2 YOURLS_SHA256=62a95ba766d62f3305d75944cbfe12d5a90c08c88fbf2f6e67150d36412b916f /bin/sh -c set -eux; curl -o yourls.tar.gz -fsSL "https://github.com/YOURLS/YOURLS/archive/${YOURLS_VERSION}.tar.gz"; echo "$YOURLS_SHA256 *yourls.tar.gz" | sha256sum -c -; tar -xf yourls.tar.gz -C /usr/src/; mv "/usr/src/YOURLS-${YOURLS_VERSION}" /usr/src/yourls; rm yourls.tar.gz; chown -R www-data:www-data /usr/src/yourls # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)COPY --chown=www-data:www-data config-container.php /usr/src/yourls/user/ # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)COPY container-entrypoint.sh /usr/local/bin/ # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["container-entrypoint.sh"]
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)CMD ["php-fpm"]
2024-04-18 21:17:33 UTC
169 MB
1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PHPIZE_DEPSautoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c
PHP_ASC_URLhttps://www.php.net/distributions/php-8.3.16.tar.xz.asc
PHP_CFLAGS-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
PHP_CPPFLAGS-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
PHP_INI_DIR/usr/local/etc/php
PHP_LDFLAGS-Wl,-O1 -pie
PHP_SHA25640d3b4e6cac33d3bcefe096d75a28d4fb4e3a9615eb20a4de55ba139fbfacdd5
PHP_URLhttps://www.php.net/distributions/php-8.3.16.tar.xz
PHP_VERSION8.3.16
YOURLS_SHA25662a95ba766d62f3305d75944cbfe12d5a90c08c88fbf2f6e67150d36412b916f
YOURLS_VERSION1.9.2
[#000] sha256:af302e5c37e9dc1dbe2eadc8f5059d82a914066b541b0d1a6daa91d0cc55057d - 15.88% (26.9 MB)
[#001] sha256:d645f62e77e87a6458f0ec8d2ebaf2f4216f24c6cda61785148b2ef540f447a8 - 0.0% (225 Bytes)
[#002] sha256:85ac7e33d5cd8cc03244f283681c5b8e103b018648d5e93b8768537af215988f - 58.73% (99.5 MB)
[#003] sha256:3ef8c3872fe3535e2887179269222849270bb2fbdc608bc678c71353b9a893d4 - 0.0% (223 Bytes)
[#004] sha256:bd3bbe2935fc139e302841c6ae6eef300476c0fbfa5c129475d279d8b485670a - 7.12% (12.1 MB)
[#005] sha256:a56a227f8f3e0923614193a2b8560bccaa83988e4edd021e05d5e5f3fb0285eb - 0.0% (489 Bytes)
[#006] sha256:91cd80c51ecacadf753aba85e2a575530157dedc94b8405b04ee471c2a8eff6c - 15.66% (26.5 MB)
[#007] sha256:11d914f0354d46f8abd3eb37fb3ea8a7cae173dc6923246d013ba0096d524ea8 - 0.0% (2.39 KB)
[#008] sha256:ee409694bd488e05b479c01cc1557b30ee03ab70b5f906174292dcda58912e66 - 0.0% (248 Bytes)
[#009] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)
[#010] sha256:12af7ac91fdb079367c3350468aef90e481ae6aec2448398818817f8a058250c - 0.01% (8.97 KB)
[#011] sha256:a9047b2a61f783036e7ab1519c1163eadfa7ffd47be19498ae1d8955ceadf1e5 - 0.3% (514 KB)
[#012] sha256:90ec58b5107d53e28c54963c517e1a13102eb16b0e42fe7522cf6a5af5438a99 - 0.0% (326 Bytes)
[#013] sha256:7dc1f3dfd2538fe75395d5171baaf1cf4d03eff3129ec0a40f19ce75f4162bb4 - 2.29% (3.88 MB)
[#014] sha256:c61afc14ea7b2a1cb17516e417c2feea35b8b6612d1bb912dcd73d9bb0b410ee - 0.0% (2 KB)
[#015] sha256:ac7bc8081e39624a2777b68716a6d625d8ec18dd6fd22b1f1aa8ecc0526ff70a - 0.0% (1.65 KB)
# debian.sh --arch 'amd64' out/ 'bookworm' '@1736726400'
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; { echo 'Package: php*'; echo 'Pin: release *'; echo 'Pin-Priority: -1'; } > /etc/apt/preferences.d/no-debian-php # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHPIZE_DEPS=autoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends $PHPIZE_DEPS ca-certificates curl xz-utils ; rm -rf /var/lib/apt/lists/* # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHP_INI_DIR=/usr/local/etc/php
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)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
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHP_CFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHP_CPPFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHP_LDFLAGS=-Wl,-O1 -pie
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV GPG_KEYS=1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHP_VERSION=8.3.16
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHP_URL=https://www.php.net/distributions/php-8.3.16.tar.xz PHP_ASC_URL=https://www.php.net/distributions/php-8.3.16.tar.xz.asc
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHP_SHA256=40d3b4e6cac33d3bcefe096d75a28d4fb4e3a9615eb20a4de55ba139fbfacdd5
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends gnupg; rm -rf /var/lib/apt/lists/*; 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; if [ -n "$PHP_ASC_URL" ]; then 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"; fi; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark > /dev/null; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)COPY docker-php-source /usr/local/bin/ # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)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; ./configure --build="$gnuArch" --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 --disable-phpdbg --with-pear --with-libdir="lib/$debMultiarch" --disable-cgi --enable-fpm --with-fpm-user=www-data --with-fpm-group=www-data ; 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 -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/*; pecl update-channels; rm -rf /tmp/pear ~/.pearrc; php --version # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c docker-php-ext-enable sodium # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-php-entrypoint"]
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)WORKDIR /var/www/html
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; cd /usr/local/etc; if [ -d php-fpm.d ]; then sed 's!=NONE/!=!g' php-fpm.conf.default | tee php-fpm.conf > /dev/null; cp php-fpm.d/www.conf.default php-fpm.d/www.conf; else mkdir php-fpm.d; cp php-fpm.conf.default php-fpm.d/www.conf; { echo '[global]'; echo 'include=etc/php-fpm.d/*.conf'; } | tee php-fpm.conf; fi; { echo '[global]'; echo 'error_log = /proc/self/fd/2'; echo; echo '; https://github.com/docker-library/php/pull/725#issuecomment-443540114'; echo 'log_limit = 8192'; echo; echo '[www]'; echo '; php-fpm closes STDOUT on startup, so sending logs to /proc/self/fd/1 does not work.'; echo '; https://bugs.php.net/bug.php?id=73886'; echo 'access.log = /proc/self/fd/2'; echo; echo 'clear_env = no'; echo; echo '; Ensure worker stdout and stderr are sent to the main error log.'; echo 'catch_workers_output = yes'; echo 'decorate_workers_output = no'; } | tee php-fpm.d/docker.conf; { echo '[global]'; echo 'daemonize = no'; echo; echo '[www]'; echo 'listen = 9000'; } | tee php-fpm.d/zz-docker.conf; mkdir -p "$PHP_INI_DIR/conf.d"; { echo '; https://github.com/docker-library/php/issues/878#issuecomment-938595965'; echo 'fastcgi.logging = Off'; } > "$PHP_INI_DIR/conf.d/docker-fpm.ini" # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGQUIT
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)EXPOSE map[9000/tcp:{}]
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)CMD ["php-fpm"]
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; docker-php-ext-install -j "$(nproc)" bcmath opcache pdo_mysql mysqli # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c { echo 'opcache.memory_consumption=128'; echo 'opcache.interned_strings_buffer=8'; echo 'opcache.max_accelerated_files=4000'; echo 'opcache.revalidate_freq=2'; echo 'opcache.fast_shutdown=1'; } > /usr/local/etc/php/conf.d/opcache-recommended.ini # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ARG YOURLS_VERSION=1.9.2
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ARG YOURLS_SHA256=62a95ba766d62f3305d75944cbfe12d5a90c08c88fbf2f6e67150d36412b916f
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV YOURLS_VERSION=1.9.2
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV YOURLS_SHA256=62a95ba766d62f3305d75944cbfe12d5a90c08c88fbf2f6e67150d36412b916f
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN |2 YOURLS_VERSION=1.9.2 YOURLS_SHA256=62a95ba766d62f3305d75944cbfe12d5a90c08c88fbf2f6e67150d36412b916f /bin/sh -c set -eux; curl -o yourls.tar.gz -fsSL "https://github.com/YOURLS/YOURLS/archive/${YOURLS_VERSION}.tar.gz"; echo "$YOURLS_SHA256 *yourls.tar.gz" | sha256sum -c -; tar -xf yourls.tar.gz -C /usr/src/; mv "/usr/src/YOURLS-${YOURLS_VERSION}" /usr/src/yourls; rm yourls.tar.gz; chown -R www-data:www-data /usr/src/yourls # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)COPY --chown=www-data:www-data config-container.php /usr/src/yourls/user/ # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)COPY container-entrypoint.sh /usr/local/bin/ # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["container-entrypoint.sh"]
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)CMD ["php-fpm"]
2024-04-18 21:17:33 UTC
144 MB
1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PHPIZE_DEPSautoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c
PHP_ASC_URLhttps://www.php.net/distributions/php-8.3.16.tar.xz.asc
PHP_CFLAGS-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
PHP_CPPFLAGS-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
PHP_INI_DIR/usr/local/etc/php
PHP_LDFLAGS-Wl,-O1 -pie
PHP_SHA25640d3b4e6cac33d3bcefe096d75a28d4fb4e3a9615eb20a4de55ba139fbfacdd5
PHP_URLhttps://www.php.net/distributions/php-8.3.16.tar.xz
PHP_VERSION8.3.16
YOURLS_SHA25662a95ba766d62f3305d75944cbfe12d5a90c08c88fbf2f6e67150d36412b916f
YOURLS_VERSION1.9.2
[#000] sha256:7a3fc1134bc1af98e13c0b7ea743c863d5a17f830a5fbd5a7002f750500e76c2 - 17.05% (24.5 MB)
[#001] sha256:14c9207294b02015ac34880f1f56ba7aba77e9ad44c2e56070e7795521b1f6a3 - 0.0% (225 Bytes)
[#002] sha256:b3e1fabaf618c3afd89265d9788fb60f42da0814211fcaeac66285e500d129fb - 54.33% (78.2 MB)
[#003] sha256:1b9bb79371400ee7378d79cc65e4e73d605be2e8ab286b3cd68107181205baef - 0.0% (225 Bytes)
[#004] sha256:35a977ae657ade611575b8960ca169edbe6e13f77b8c0d77c9b5c6426ca68c9e - 8.38% (12.1 MB)
[#005] sha256:622f7187a77428f368f216c6d24a4c00e3071a39fd178f8d731891b985ed25cc - 0.0% (490 Bytes)
[#006] sha256:ce354e96b784530f62c62400433f3d2a893e7c097b07db8ea156586366723624 - 17.43% (25.1 MB)
[#007] sha256:ae121ab2094e8edf38282e5bff4918a9f74f74e04681c78cc6319d5ebac64967 - 0.0% (2.39 KB)
[#008] sha256:af4388b2038ff808e4a8a08beb098197226628a7bbe3392bfe9fe9b1d2744ad1 - 0.0% (248 Bytes)
[#009] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)
[#010] sha256:2a4236bf98bbb323d6aa68dff4409b6e7c9f191f378a755223710bc403b7bb2d - 0.01% (8.97 KB)
[#011] sha256:88487a44e33f03a9ee36bf91202933825c7378c0c8c3e8198547e6727691b9ac - 0.1% (151 KB)
[#012] sha256:cec5ec8051f04c987646e81c34c3c8983e96e07ad4953b10e301aba32401ab03 - 0.0% (326 Bytes)
[#013] sha256:4773ce6651ea96b2efc7a0710430a50cec91301d3b21b70dc46e670db376ac36 - 2.7% (3.88 MB)
[#014] sha256:645503bc05efb685ee051634c6f475843ee7ffab36f7f97de6840d3636d1f737 - 0.0% (2 KB)
[#015] sha256:ae4e6b1df27dfbf8c7d38478bfd57a45bc02d3f25400124967b7427a807adb0a - 0.0% (1.65 KB)
# debian.sh --arch 'armel' out/ 'bookworm' '@1736726400'
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; { echo 'Package: php*'; echo 'Pin: release *'; echo 'Pin-Priority: -1'; } > /etc/apt/preferences.d/no-debian-php # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHPIZE_DEPS=autoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends $PHPIZE_DEPS ca-certificates curl xz-utils ; rm -rf /var/lib/apt/lists/* # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHP_INI_DIR=/usr/local/etc/php
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)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
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHP_CFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHP_CPPFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHP_LDFLAGS=-Wl,-O1 -pie
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV GPG_KEYS=1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHP_VERSION=8.3.16
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHP_URL=https://www.php.net/distributions/php-8.3.16.tar.xz PHP_ASC_URL=https://www.php.net/distributions/php-8.3.16.tar.xz.asc
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHP_SHA256=40d3b4e6cac33d3bcefe096d75a28d4fb4e3a9615eb20a4de55ba139fbfacdd5
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends gnupg; rm -rf /var/lib/apt/lists/*; 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; if [ -n "$PHP_ASC_URL" ]; then 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"; fi; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark > /dev/null; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)COPY docker-php-source /usr/local/bin/ # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)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; ./configure --build="$gnuArch" --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 --disable-phpdbg --with-pear --with-libdir="lib/$debMultiarch" --disable-cgi --enable-fpm --with-fpm-user=www-data --with-fpm-group=www-data ; 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 -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/*; pecl update-channels; rm -rf /tmp/pear ~/.pearrc; php --version # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c docker-php-ext-enable sodium # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-php-entrypoint"]
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)WORKDIR /var/www/html
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; cd /usr/local/etc; if [ -d php-fpm.d ]; then sed 's!=NONE/!=!g' php-fpm.conf.default | tee php-fpm.conf > /dev/null; cp php-fpm.d/www.conf.default php-fpm.d/www.conf; else mkdir php-fpm.d; cp php-fpm.conf.default php-fpm.d/www.conf; { echo '[global]'; echo 'include=etc/php-fpm.d/*.conf'; } | tee php-fpm.conf; fi; { echo '[global]'; echo 'error_log = /proc/self/fd/2'; echo; echo '; https://github.com/docker-library/php/pull/725#issuecomment-443540114'; echo 'log_limit = 8192'; echo; echo '[www]'; echo '; php-fpm closes STDOUT on startup, so sending logs to /proc/self/fd/1 does not work.'; echo '; https://bugs.php.net/bug.php?id=73886'; echo 'access.log = /proc/self/fd/2'; echo; echo 'clear_env = no'; echo; echo '; Ensure worker stdout and stderr are sent to the main error log.'; echo 'catch_workers_output = yes'; echo 'decorate_workers_output = no'; } | tee php-fpm.d/docker.conf; { echo '[global]'; echo 'daemonize = no'; echo; echo '[www]'; echo 'listen = 9000'; } | tee php-fpm.d/zz-docker.conf; mkdir -p "$PHP_INI_DIR/conf.d"; { echo '; https://github.com/docker-library/php/issues/878#issuecomment-938595965'; echo 'fastcgi.logging = Off'; } > "$PHP_INI_DIR/conf.d/docker-fpm.ini" # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGQUIT
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)EXPOSE map[9000/tcp:{}]
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)CMD ["php-fpm"]
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; docker-php-ext-install -j "$(nproc)" bcmath opcache pdo_mysql mysqli # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c { echo 'opcache.memory_consumption=128'; echo 'opcache.interned_strings_buffer=8'; echo 'opcache.max_accelerated_files=4000'; echo 'opcache.revalidate_freq=2'; echo 'opcache.fast_shutdown=1'; } > /usr/local/etc/php/conf.d/opcache-recommended.ini # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ARG YOURLS_VERSION=1.9.2
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ARG YOURLS_SHA256=62a95ba766d62f3305d75944cbfe12d5a90c08c88fbf2f6e67150d36412b916f
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV YOURLS_VERSION=1.9.2
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV YOURLS_SHA256=62a95ba766d62f3305d75944cbfe12d5a90c08c88fbf2f6e67150d36412b916f
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN |2 YOURLS_VERSION=1.9.2 YOURLS_SHA256=62a95ba766d62f3305d75944cbfe12d5a90c08c88fbf2f6e67150d36412b916f /bin/sh -c set -eux; curl -o yourls.tar.gz -fsSL "https://github.com/YOURLS/YOURLS/archive/${YOURLS_VERSION}.tar.gz"; echo "$YOURLS_SHA256 *yourls.tar.gz" | sha256sum -c -; tar -xf yourls.tar.gz -C /usr/src/; mv "/usr/src/YOURLS-${YOURLS_VERSION}" /usr/src/yourls; rm yourls.tar.gz; chown -R www-data:www-data /usr/src/yourls # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)COPY --chown=www-data:www-data config-container.php /usr/src/yourls/user/ # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)COPY container-entrypoint.sh /usr/local/bin/ # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["container-entrypoint.sh"]
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)CMD ["php-fpm"]
2024-04-18 21:17:33 UTC
136 MB
1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PHPIZE_DEPSautoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c
PHP_ASC_URLhttps://www.php.net/distributions/php-8.3.16.tar.xz.asc
PHP_CFLAGS-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
PHP_CPPFLAGS-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
PHP_INI_DIR/usr/local/etc/php
PHP_LDFLAGS-Wl,-O1 -pie
PHP_SHA25640d3b4e6cac33d3bcefe096d75a28d4fb4e3a9615eb20a4de55ba139fbfacdd5
PHP_URLhttps://www.php.net/distributions/php-8.3.16.tar.xz
PHP_VERSION8.3.16
YOURLS_SHA25662a95ba766d62f3305d75944cbfe12d5a90c08c88fbf2f6e67150d36412b916f
YOURLS_VERSION1.9.2
[#000] sha256:f7fde15b664589586a61b714ca6b43dec045d0f187d81d4eb050918e17b0ff1e - 16.8% (22.8 MB)
[#001] sha256:1d546b00afb4b9d040080c0bcc406bf33316623067156773fc2c6b01571dc5c3 - 0.0% (225 Bytes)
[#002] sha256:0bbadf9d833fbe1e5f7e579b22da5a224c4248d4c38649c1535310aa87b326e8 - 53.5% (72.6 MB)
[#003] sha256:1827c0e6243599ec0c52a40858b85fe86d2ce54a4d77185b826e94ce33c26525 - 0.0% (223 Bytes)
[#004] sha256:84a0dc85150671dd83e1962960212d480e409c75ec3a68cbf72db784fb249d53 - 8.89% (12.1 MB)
[#005] sha256:328e89c1cc2c9fd0f94c28fc95f69605ed48642cd799099c8480187e0a23988f - 0.0% (490 Bytes)
[#006] sha256:17d6842c02f3dc4b9ff95828d43722a5498b73962be60189ef268e9085cc90bc - 17.85% (24.2 MB)
[#007] sha256:c7e3da82300789d8881c7a8893f59dbe59a0added320d1fa9f48039601a1a7c2 - 0.0% (2.39 KB)
[#008] sha256:6620ac91454b52afb1bd3c92036bf7c1191980afbda76f576fd79cb114b34793 - 0.0% (245 Bytes)
[#009] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)
[#010] sha256:6a1c29624f9af7b8a2566c90d3e8e9de7ebfaf25034e49af595d191dd9e45b9b - 0.01% (8.97 KB)
[#011] sha256:decc598f964bdf493423d859cf212855fb8a3d402abc33c79e3c577a87f77fc1 - 0.1% (138 KB)
[#012] sha256:d1f00f5b2e15565a9e08d71ba6960ac4d71783956bee726dfcddf0bcae91d9de - 0.0% (327 Bytes)
[#013] sha256:4aa375c648f682f203157463ff3a669fded0b0e9302b89eb090bfe4e49dc79ec - 2.86% (3.88 MB)
[#014] sha256:5301adbe814d4a5f5a5ebc301e9ce88683c12e81b722d6ababcb8a6bb1c6b1be - 0.0% (2 KB)
[#015] sha256:dcff099b3094adda951e1a6100414534c5c08b6a67850bea081c8f289e484e73 - 0.0% (1.65 KB)
# debian.sh --arch 'armhf' out/ 'bookworm' '@1736726400'
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; { echo 'Package: php*'; echo 'Pin: release *'; echo 'Pin-Priority: -1'; } > /etc/apt/preferences.d/no-debian-php # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHPIZE_DEPS=autoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends $PHPIZE_DEPS ca-certificates curl xz-utils ; rm -rf /var/lib/apt/lists/* # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHP_INI_DIR=/usr/local/etc/php
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)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
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHP_CFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHP_CPPFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHP_LDFLAGS=-Wl,-O1 -pie
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV GPG_KEYS=1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHP_VERSION=8.3.16
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHP_URL=https://www.php.net/distributions/php-8.3.16.tar.xz PHP_ASC_URL=https://www.php.net/distributions/php-8.3.16.tar.xz.asc
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHP_SHA256=40d3b4e6cac33d3bcefe096d75a28d4fb4e3a9615eb20a4de55ba139fbfacdd5
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends gnupg; rm -rf /var/lib/apt/lists/*; 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; if [ -n "$PHP_ASC_URL" ]; then 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"; fi; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark > /dev/null; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)COPY docker-php-source /usr/local/bin/ # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)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; ./configure --build="$gnuArch" --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 --disable-phpdbg --with-pear --with-libdir="lib/$debMultiarch" --disable-cgi --enable-fpm --with-fpm-user=www-data --with-fpm-group=www-data ; 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 -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/*; pecl update-channels; rm -rf /tmp/pear ~/.pearrc; php --version # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c docker-php-ext-enable sodium # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-php-entrypoint"]
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)WORKDIR /var/www/html
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; cd /usr/local/etc; if [ -d php-fpm.d ]; then sed 's!=NONE/!=!g' php-fpm.conf.default | tee php-fpm.conf > /dev/null; cp php-fpm.d/www.conf.default php-fpm.d/www.conf; else mkdir php-fpm.d; cp php-fpm.conf.default php-fpm.d/www.conf; { echo '[global]'; echo 'include=etc/php-fpm.d/*.conf'; } | tee php-fpm.conf; fi; { echo '[global]'; echo 'error_log = /proc/self/fd/2'; echo; echo '; https://github.com/docker-library/php/pull/725#issuecomment-443540114'; echo 'log_limit = 8192'; echo; echo '[www]'; echo '; php-fpm closes STDOUT on startup, so sending logs to /proc/self/fd/1 does not work.'; echo '; https://bugs.php.net/bug.php?id=73886'; echo 'access.log = /proc/self/fd/2'; echo; echo 'clear_env = no'; echo; echo '; Ensure worker stdout and stderr are sent to the main error log.'; echo 'catch_workers_output = yes'; echo 'decorate_workers_output = no'; } | tee php-fpm.d/docker.conf; { echo '[global]'; echo 'daemonize = no'; echo; echo '[www]'; echo 'listen = 9000'; } | tee php-fpm.d/zz-docker.conf; mkdir -p "$PHP_INI_DIR/conf.d"; { echo '; https://github.com/docker-library/php/issues/878#issuecomment-938595965'; echo 'fastcgi.logging = Off'; } > "$PHP_INI_DIR/conf.d/docker-fpm.ini" # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGQUIT
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)EXPOSE map[9000/tcp:{}]
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)CMD ["php-fpm"]
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; docker-php-ext-install -j "$(nproc)" bcmath opcache pdo_mysql mysqli # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c { echo 'opcache.memory_consumption=128'; echo 'opcache.interned_strings_buffer=8'; echo 'opcache.max_accelerated_files=4000'; echo 'opcache.revalidate_freq=2'; echo 'opcache.fast_shutdown=1'; } > /usr/local/etc/php/conf.d/opcache-recommended.ini # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ARG YOURLS_VERSION=1.9.2
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ARG YOURLS_SHA256=62a95ba766d62f3305d75944cbfe12d5a90c08c88fbf2f6e67150d36412b916f
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV YOURLS_VERSION=1.9.2
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV YOURLS_SHA256=62a95ba766d62f3305d75944cbfe12d5a90c08c88fbf2f6e67150d36412b916f
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN |2 YOURLS_VERSION=1.9.2 YOURLS_SHA256=62a95ba766d62f3305d75944cbfe12d5a90c08c88fbf2f6e67150d36412b916f /bin/sh -c set -eux; curl -o yourls.tar.gz -fsSL "https://github.com/YOURLS/YOURLS/archive/${YOURLS_VERSION}.tar.gz"; echo "$YOURLS_SHA256 *yourls.tar.gz" | sha256sum -c -; tar -xf yourls.tar.gz -C /usr/src/; mv "/usr/src/YOURLS-${YOURLS_VERSION}" /usr/src/yourls; rm yourls.tar.gz; chown -R www-data:www-data /usr/src/yourls # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)COPY --chown=www-data:www-data config-container.php /usr/src/yourls/user/ # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)COPY container-entrypoint.sh /usr/local/bin/ # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["container-entrypoint.sh"]
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)CMD ["php-fpm"]
2024-04-18 21:17:33 UTC
164 MB
1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PHPIZE_DEPSautoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c
PHP_ASC_URLhttps://www.php.net/distributions/php-8.3.16.tar.xz.asc
PHP_CFLAGS-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
PHP_CPPFLAGS-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
PHP_INI_DIR/usr/local/etc/php
PHP_LDFLAGS-Wl,-O1 -pie
PHP_SHA25640d3b4e6cac33d3bcefe096d75a28d4fb4e3a9615eb20a4de55ba139fbfacdd5
PHP_URLhttps://www.php.net/distributions/php-8.3.16.tar.xz
PHP_VERSION8.3.16
YOURLS_SHA25662a95ba766d62f3305d75944cbfe12d5a90c08c88fbf2f6e67150d36412b916f
YOURLS_VERSION1.9.2
[#000] sha256:7ce705000c390df8b2edde0e8b9c65a6677da4503a8f8fd89b355a3f827a275f - 16.35% (26.7 MB)
[#001] sha256:48015c6e07faccdd2a54d1e2ccecbd028511c6c5d8cf9a4f84b8d4d42d775ba8 - 0.0% (225 Bytes)
[#002] sha256:69f6eaa105a9e29cbbbc0157f5082daabecac6d65df1a6be8e50afa6dd8b23a3 - 57.23% (93.6 MB)
[#003] sha256:4e3f24c5a85b79cc5db518b237cd81340b2b5649ed577353635cba0aa5362458 - 0.0% (226 Bytes)
[#004] sha256:3c20c74d7ca7b0f75e754614dd97f97b6e9fe680040e8e6d911ecee26dac89e1 - 7.38% (12.1 MB)
[#005] sha256:f213f403d3868d9c24423423236fc923b73268ace6db9f05835fe73837068d6b - 0.0% (487 Bytes)
[#006] sha256:20c057c056ab0501dcf7cca96dc9470d5a3fb26a25f782042bdc51feb4178c74 - 16.19% (26.5 MB)
[#007] sha256:a0c3816f32f79f6255c8b359254e39f45550e9bd5f31200f4e095c5d298027b0 - 0.0% (2.39 KB)
[#008] sha256:24cbc6131e57ebbe08e604d2af1b14eda619e2e5855da44e14075fb51779dbb6 - 0.0% (244 Bytes)
[#009] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)
[#010] sha256:c6615aabb22e40576bc8b69d7f187813c6a18b35a92bf32b042067462b9694b5 - 0.01% (8.96 KB)
[#011] sha256:323516e5ddb356629a2bf6c75607c585f4b2c2a309c19afad141333e5d76a7c9 - 0.46% (777 KB)
[#012] sha256:a7f62fda5784fc8bd1d376b4563d76b04a8dd678898e6c24d46b89211655203b - 0.0% (326 Bytes)
[#013] sha256:bb492ed3d8220cd5357062f39f8621be24967d0ec7968ec0e8d6be068d4c24ff - 2.38% (3.88 MB)
[#014] sha256:d09b03cb84ff7b385e793bbe2bb5630a25c9afda30aab941a95e89216bddd3bf - 0.0% (2 KB)
[#015] sha256:8bf0c3e3834a2475e055d6db8bdd3eb3bf270a84808a567d960955845bc4bbc2 - 0.0% (1.65 KB)
# debian.sh --arch 'arm64' out/ 'bookworm' '@1736726400'
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; { echo 'Package: php*'; echo 'Pin: release *'; echo 'Pin-Priority: -1'; } > /etc/apt/preferences.d/no-debian-php # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHPIZE_DEPS=autoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends $PHPIZE_DEPS ca-certificates curl xz-utils ; rm -rf /var/lib/apt/lists/* # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHP_INI_DIR=/usr/local/etc/php
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)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
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHP_CFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHP_CPPFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHP_LDFLAGS=-Wl,-O1 -pie
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV GPG_KEYS=1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHP_VERSION=8.3.16
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHP_URL=https://www.php.net/distributions/php-8.3.16.tar.xz PHP_ASC_URL=https://www.php.net/distributions/php-8.3.16.tar.xz.asc
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHP_SHA256=40d3b4e6cac33d3bcefe096d75a28d4fb4e3a9615eb20a4de55ba139fbfacdd5
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends gnupg; rm -rf /var/lib/apt/lists/*; 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; if [ -n "$PHP_ASC_URL" ]; then 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"; fi; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark > /dev/null; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)COPY docker-php-source /usr/local/bin/ # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)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; ./configure --build="$gnuArch" --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 --disable-phpdbg --with-pear --with-libdir="lib/$debMultiarch" --disable-cgi --enable-fpm --with-fpm-user=www-data --with-fpm-group=www-data ; 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 -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/*; pecl update-channels; rm -rf /tmp/pear ~/.pearrc; php --version # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c docker-php-ext-enable sodium # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-php-entrypoint"]
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)WORKDIR /var/www/html
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; cd /usr/local/etc; if [ -d php-fpm.d ]; then sed 's!=NONE/!=!g' php-fpm.conf.default | tee php-fpm.conf > /dev/null; cp php-fpm.d/www.conf.default php-fpm.d/www.conf; else mkdir php-fpm.d; cp php-fpm.conf.default php-fpm.d/www.conf; { echo '[global]'; echo 'include=etc/php-fpm.d/*.conf'; } | tee php-fpm.conf; fi; { echo '[global]'; echo 'error_log = /proc/self/fd/2'; echo; echo '; https://github.com/docker-library/php/pull/725#issuecomment-443540114'; echo 'log_limit = 8192'; echo; echo '[www]'; echo '; php-fpm closes STDOUT on startup, so sending logs to /proc/self/fd/1 does not work.'; echo '; https://bugs.php.net/bug.php?id=73886'; echo 'access.log = /proc/self/fd/2'; echo; echo 'clear_env = no'; echo; echo '; Ensure worker stdout and stderr are sent to the main error log.'; echo 'catch_workers_output = yes'; echo 'decorate_workers_output = no'; } | tee php-fpm.d/docker.conf; { echo '[global]'; echo 'daemonize = no'; echo; echo '[www]'; echo 'listen = 9000'; } | tee php-fpm.d/zz-docker.conf; mkdir -p "$PHP_INI_DIR/conf.d"; { echo '; https://github.com/docker-library/php/issues/878#issuecomment-938595965'; echo 'fastcgi.logging = Off'; } > "$PHP_INI_DIR/conf.d/docker-fpm.ini" # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGQUIT
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)EXPOSE map[9000/tcp:{}]
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)CMD ["php-fpm"]
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; docker-php-ext-install -j "$(nproc)" bcmath opcache pdo_mysql mysqli # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c { echo 'opcache.memory_consumption=128'; echo 'opcache.interned_strings_buffer=8'; echo 'opcache.max_accelerated_files=4000'; echo 'opcache.revalidate_freq=2'; echo 'opcache.fast_shutdown=1'; } > /usr/local/etc/php/conf.d/opcache-recommended.ini # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ARG YOURLS_VERSION=1.9.2
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ARG YOURLS_SHA256=62a95ba766d62f3305d75944cbfe12d5a90c08c88fbf2f6e67150d36412b916f
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV YOURLS_VERSION=1.9.2
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV YOURLS_SHA256=62a95ba766d62f3305d75944cbfe12d5a90c08c88fbf2f6e67150d36412b916f
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN |2 YOURLS_VERSION=1.9.2 YOURLS_SHA256=62a95ba766d62f3305d75944cbfe12d5a90c08c88fbf2f6e67150d36412b916f /bin/sh -c set -eux; curl -o yourls.tar.gz -fsSL "https://github.com/YOURLS/YOURLS/archive/${YOURLS_VERSION}.tar.gz"; echo "$YOURLS_SHA256 *yourls.tar.gz" | sha256sum -c -; tar -xf yourls.tar.gz -C /usr/src/; mv "/usr/src/YOURLS-${YOURLS_VERSION}" /usr/src/yourls; rm yourls.tar.gz; chown -R www-data:www-data /usr/src/yourls # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)COPY --chown=www-data:www-data config-container.php /usr/src/yourls/user/ # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)COPY container-entrypoint.sh /usr/local/bin/ # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["container-entrypoint.sh"]
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)CMD ["php-fpm"]
2024-04-18 21:17:33 UTC
146 MB
1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PHPIZE_DEPSautoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c
PHP_ASC_URLhttps://www.php.net/distributions/php-8.3.16.tar.xz.asc
PHP_CFLAGS-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
PHP_CPPFLAGS-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
PHP_INI_DIR/usr/local/etc/php
PHP_LDFLAGS-Wl,-O1 -pie
PHP_SHA25640d3b4e6cac33d3bcefe096d75a28d4fb4e3a9615eb20a4de55ba139fbfacdd5
PHP_URLhttps://www.php.net/distributions/php-8.3.16.tar.xz
PHP_VERSION8.3.16
YOURLS_SHA25662a95ba766d62f3305d75944cbfe12d5a90c08c88fbf2f6e67150d36412b916f
YOURLS_VERSION1.9.2
[#000] sha256:b08d7e697b04bda8cef97763765ebbbc16790e22945b5ab31d97d448a15c8650 - 18.62% (27.2 MB)
[#001] sha256:89185b6d37a912303ece30771194df4d9a4bd81c186ebd0c112827238102177a - 0.0% (224 Bytes)
[#002] sha256:4b93be406fdfc396e7ea27bf3106aaa3e69436152e180b74a54061e746a13506 - 52.74% (76.9 MB)
[#003] sha256:72c06af120fe87200b0a7299150015ee7a1b24d5687e5fd9ff3e0b2c26b7b1bd - 0.0% (223 Bytes)
[#004] sha256:d684a3d1dd2d4e9b9da185d69c2be691fc4e1230281d16382f6f404c0ac945a5 - 8.27% (12.1 MB)
[#005] sha256:a7aa6f8f0605791fa93ec7897f18f862c4823aae8843250ded7420ef7068b46d - 0.0% (487 Bytes)
[#006] sha256:d38320a98cb5f0676da1435ed3fe9e6a122ef690c7bccd137d37944fd148d4ad - 17.6% (25.7 MB)
[#007] sha256:3d5eb8a051c8f00a43f20bddd12422366fce574587a6baae549b86b8d73213ff - 0.0% (2.39 KB)
[#008] sha256:3351b62533f1ab850bcd4ef672002e8e03e0bfd41979e5daaacce2e9e2188672 - 0.0% (247 Bytes)
[#009] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)
[#010] sha256:21fb141edd8aa38079b2f1e0c310ddffb56819720b70d0739fe65c434b13991f - 0.01% (8.96 KB)
[#011] sha256:9c78c2b6b8735dfe463b7cf0d4eaafe704af40358e252504ca6240305ba9a441 - 0.1% (150 KB)
[#012] sha256:8dabe8a76630c1c3e77c5ec263ea488a902e9c496fc71468ec88ff7960b5ffad - 0.0% (327 Bytes)
[#013] sha256:c359c0d62fb03e01da76906d99843ab1f48d7d7dbbfdb5ad4a6732403137ea13 - 2.66% (3.88 MB)
[#014] sha256:7973555571311761cbd64ea7f143a90ca119c039586b57239da77591683c6a98 - 0.0% (2 KB)
[#015] sha256:2916827a1367589e31e5627c446fd6b68f9d0b144807888da145e6be7845391f - 0.0% (1.65 KB)
# debian.sh --arch 'mips64el' out/ 'bookworm' '@1736726400'
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; { echo 'Package: php*'; echo 'Pin: release *'; echo 'Pin-Priority: -1'; } > /etc/apt/preferences.d/no-debian-php # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHPIZE_DEPS=autoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends $PHPIZE_DEPS ca-certificates curl xz-utils ; rm -rf /var/lib/apt/lists/* # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHP_INI_DIR=/usr/local/etc/php
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)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
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHP_CFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHP_CPPFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHP_LDFLAGS=-Wl,-O1 -pie
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV GPG_KEYS=1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHP_VERSION=8.3.16
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHP_URL=https://www.php.net/distributions/php-8.3.16.tar.xz PHP_ASC_URL=https://www.php.net/distributions/php-8.3.16.tar.xz.asc
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHP_SHA256=40d3b4e6cac33d3bcefe096d75a28d4fb4e3a9615eb20a4de55ba139fbfacdd5
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends gnupg; rm -rf /var/lib/apt/lists/*; 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; if [ -n "$PHP_ASC_URL" ]; then 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"; fi; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark > /dev/null; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)COPY docker-php-source /usr/local/bin/ # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)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; ./configure --build="$gnuArch" --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 --disable-phpdbg --with-pear --with-libdir="lib/$debMultiarch" --disable-cgi --enable-fpm --with-fpm-user=www-data --with-fpm-group=www-data ; 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 -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/*; pecl update-channels; rm -rf /tmp/pear ~/.pearrc; php --version # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c docker-php-ext-enable sodium # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-php-entrypoint"]
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)WORKDIR /var/www/html
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; cd /usr/local/etc; if [ -d php-fpm.d ]; then sed 's!=NONE/!=!g' php-fpm.conf.default | tee php-fpm.conf > /dev/null; cp php-fpm.d/www.conf.default php-fpm.d/www.conf; else mkdir php-fpm.d; cp php-fpm.conf.default php-fpm.d/www.conf; { echo '[global]'; echo 'include=etc/php-fpm.d/*.conf'; } | tee php-fpm.conf; fi; { echo '[global]'; echo 'error_log = /proc/self/fd/2'; echo; echo '; https://github.com/docker-library/php/pull/725#issuecomment-443540114'; echo 'log_limit = 8192'; echo; echo '[www]'; echo '; php-fpm closes STDOUT on startup, so sending logs to /proc/self/fd/1 does not work.'; echo '; https://bugs.php.net/bug.php?id=73886'; echo 'access.log = /proc/self/fd/2'; echo; echo 'clear_env = no'; echo; echo '; Ensure worker stdout and stderr are sent to the main error log.'; echo 'catch_workers_output = yes'; echo 'decorate_workers_output = no'; } | tee php-fpm.d/docker.conf; { echo '[global]'; echo 'daemonize = no'; echo; echo '[www]'; echo 'listen = 9000'; } | tee php-fpm.d/zz-docker.conf; mkdir -p "$PHP_INI_DIR/conf.d"; { echo '; https://github.com/docker-library/php/issues/878#issuecomment-938595965'; echo 'fastcgi.logging = Off'; } > "$PHP_INI_DIR/conf.d/docker-fpm.ini" # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGQUIT
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)EXPOSE map[9000/tcp:{}]
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)CMD ["php-fpm"]
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; docker-php-ext-install -j "$(nproc)" bcmath opcache pdo_mysql mysqli # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c { echo 'opcache.memory_consumption=128'; echo 'opcache.interned_strings_buffer=8'; echo 'opcache.max_accelerated_files=4000'; echo 'opcache.revalidate_freq=2'; echo 'opcache.fast_shutdown=1'; } > /usr/local/etc/php/conf.d/opcache-recommended.ini # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ARG YOURLS_VERSION=1.9.2
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ARG YOURLS_SHA256=62a95ba766d62f3305d75944cbfe12d5a90c08c88fbf2f6e67150d36412b916f
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV YOURLS_VERSION=1.9.2
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV YOURLS_SHA256=62a95ba766d62f3305d75944cbfe12d5a90c08c88fbf2f6e67150d36412b916f
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN |2 YOURLS_VERSION=1.9.2 YOURLS_SHA256=62a95ba766d62f3305d75944cbfe12d5a90c08c88fbf2f6e67150d36412b916f /bin/sh -c set -eux; curl -o yourls.tar.gz -fsSL "https://github.com/YOURLS/YOURLS/archive/${YOURLS_VERSION}.tar.gz"; echo "$YOURLS_SHA256 *yourls.tar.gz" | sha256sum -c -; tar -xf yourls.tar.gz -C /usr/src/; mv "/usr/src/YOURLS-${YOURLS_VERSION}" /usr/src/yourls; rm yourls.tar.gz; chown -R www-data:www-data /usr/src/yourls # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)COPY --chown=www-data:www-data config-container.php /usr/src/yourls/user/ # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)COPY container-entrypoint.sh /usr/local/bin/ # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["container-entrypoint.sh"]
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)CMD ["php-fpm"]
2024-04-18 21:17:33 UTC
173 MB
1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PHPIZE_DEPSautoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c
PHP_ASC_URLhttps://www.php.net/distributions/php-8.3.16.tar.xz.asc
PHP_CFLAGS-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
PHP_CPPFLAGS-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
PHP_INI_DIR/usr/local/etc/php
PHP_LDFLAGS-Wl,-O1 -pie
PHP_SHA25640d3b4e6cac33d3bcefe096d75a28d4fb4e3a9615eb20a4de55ba139fbfacdd5
PHP_URLhttps://www.php.net/distributions/php-8.3.16.tar.xz
PHP_VERSION8.3.16
YOURLS_SHA25662a95ba766d62f3305d75944cbfe12d5a90c08c88fbf2f6e67150d36412b916f
YOURLS_VERSION1.9.2
[#000] sha256:70e5167c90e251fcf2a687213601657926417de61cc905425399c9fcffb3d50f - 17.69% (30.6 MB)
[#001] sha256:880827561304c75010a4d05501b52a649ab01b28573a0e1238b8b2cfc0987b4a - 0.0% (225 Bytes)
[#002] sha256:8101bc0347decf245b442b5f7813aa3ea26f953213626a52bbbf98a1f1d3319c - 57.03% (98.5 MB)
[#003] sha256:ba88d523ef6cd37508f451e4c05ba1fe1868379b426cce9cbb1f53b8af157e5d - 0.0% (222 Bytes)
[#004] sha256:84047d3ba6fbe1711208c33216ae0845c2b3c9845a49f32b641b2dad2cd16e44 - 6.98% (12.1 MB)
[#005] sha256:b5252de6700252b48c5251fe04658fafbb582a6ee0ccaabb011f6d5c66860917 - 0.0% (490 Bytes)
[#006] sha256:2e0a3db788575b02bcd9ba17e093a780341806070ead8d5d880bb5316e7adb19 - 15.94% (27.5 MB)
[#007] sha256:35e2d41cff347225bb9c5d1643c590ddf0648d63d0005ab87017c9216641baba - 0.0% (2.39 KB)
[#008] sha256:451025b7406e496f49c514e3a2aa0d4e8821eb5aa02ecacab5537a148f06886e - 0.0% (246 Bytes)
[#009] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)
[#010] sha256:e2b61980dfa130f6cb63661d6635830b8f826ffadb1c91bc949b03743d9984d8 - 0.01% (8.97 KB)
[#011] sha256:48cf7a9fc644fc1804445996f676f1dbc62287a7b2015dbbe13c2e1d63904941 - 0.1% (184 KB)
[#012] sha256:68af9efc9ae700e184255adb94e0b2027b92392d359b75e7f1e38400ecc2242f - 0.0% (326 Bytes)
[#013] sha256:752efb9c2911aa1b6d493e84be8e68508322ae41e6a6fde3134129260f2a11a8 - 2.25% (3.88 MB)
[#014] sha256:f9632d5b042414164d15068450983f3fbd9ecd567056ac2f037d87f3e070e34f - 0.0% (2 KB)
[#015] sha256:b16fe8b499b552f479f289a935baadd1949a145479e84319ef1f524f2548718e - 0.0% (1.65 KB)
# debian.sh --arch 'ppc64el' out/ 'bookworm' '@1736726400'
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; { echo 'Package: php*'; echo 'Pin: release *'; echo 'Pin-Priority: -1'; } > /etc/apt/preferences.d/no-debian-php # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHPIZE_DEPS=autoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends $PHPIZE_DEPS ca-certificates curl xz-utils ; rm -rf /var/lib/apt/lists/* # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHP_INI_DIR=/usr/local/etc/php
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)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
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHP_CFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHP_CPPFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHP_LDFLAGS=-Wl,-O1 -pie
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV GPG_KEYS=1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHP_VERSION=8.3.16
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHP_URL=https://www.php.net/distributions/php-8.3.16.tar.xz PHP_ASC_URL=https://www.php.net/distributions/php-8.3.16.tar.xz.asc
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHP_SHA256=40d3b4e6cac33d3bcefe096d75a28d4fb4e3a9615eb20a4de55ba139fbfacdd5
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends gnupg; rm -rf /var/lib/apt/lists/*; 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; if [ -n "$PHP_ASC_URL" ]; then 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"; fi; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark > /dev/null; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)COPY docker-php-source /usr/local/bin/ # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)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; ./configure --build="$gnuArch" --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 --disable-phpdbg --with-pear --with-libdir="lib/$debMultiarch" --disable-cgi --enable-fpm --with-fpm-user=www-data --with-fpm-group=www-data ; 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 -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/*; pecl update-channels; rm -rf /tmp/pear ~/.pearrc; php --version # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c docker-php-ext-enable sodium # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-php-entrypoint"]
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)WORKDIR /var/www/html
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; cd /usr/local/etc; if [ -d php-fpm.d ]; then sed 's!=NONE/!=!g' php-fpm.conf.default | tee php-fpm.conf > /dev/null; cp php-fpm.d/www.conf.default php-fpm.d/www.conf; else mkdir php-fpm.d; cp php-fpm.conf.default php-fpm.d/www.conf; { echo '[global]'; echo 'include=etc/php-fpm.d/*.conf'; } | tee php-fpm.conf; fi; { echo '[global]'; echo 'error_log = /proc/self/fd/2'; echo; echo '; https://github.com/docker-library/php/pull/725#issuecomment-443540114'; echo 'log_limit = 8192'; echo; echo '[www]'; echo '; php-fpm closes STDOUT on startup, so sending logs to /proc/self/fd/1 does not work.'; echo '; https://bugs.php.net/bug.php?id=73886'; echo 'access.log = /proc/self/fd/2'; echo; echo 'clear_env = no'; echo; echo '; Ensure worker stdout and stderr are sent to the main error log.'; echo 'catch_workers_output = yes'; echo 'decorate_workers_output = no'; } | tee php-fpm.d/docker.conf; { echo '[global]'; echo 'daemonize = no'; echo; echo '[www]'; echo 'listen = 9000'; } | tee php-fpm.d/zz-docker.conf; mkdir -p "$PHP_INI_DIR/conf.d"; { echo '; https://github.com/docker-library/php/issues/878#issuecomment-938595965'; echo 'fastcgi.logging = Off'; } > "$PHP_INI_DIR/conf.d/docker-fpm.ini" # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGQUIT
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)EXPOSE map[9000/tcp:{}]
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)CMD ["php-fpm"]
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; docker-php-ext-install -j "$(nproc)" bcmath opcache pdo_mysql mysqli # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c { echo 'opcache.memory_consumption=128'; echo 'opcache.interned_strings_buffer=8'; echo 'opcache.max_accelerated_files=4000'; echo 'opcache.revalidate_freq=2'; echo 'opcache.fast_shutdown=1'; } > /usr/local/etc/php/conf.d/opcache-recommended.ini # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ARG YOURLS_VERSION=1.9.2
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ARG YOURLS_SHA256=62a95ba766d62f3305d75944cbfe12d5a90c08c88fbf2f6e67150d36412b916f
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV YOURLS_VERSION=1.9.2
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV YOURLS_SHA256=62a95ba766d62f3305d75944cbfe12d5a90c08c88fbf2f6e67150d36412b916f
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN |2 YOURLS_VERSION=1.9.2 YOURLS_SHA256=62a95ba766d62f3305d75944cbfe12d5a90c08c88fbf2f6e67150d36412b916f /bin/sh -c set -eux; curl -o yourls.tar.gz -fsSL "https://github.com/YOURLS/YOURLS/archive/${YOURLS_VERSION}.tar.gz"; echo "$YOURLS_SHA256 *yourls.tar.gz" | sha256sum -c -; tar -xf yourls.tar.gz -C /usr/src/; mv "/usr/src/YOURLS-${YOURLS_VERSION}" /usr/src/yourls; rm yourls.tar.gz; chown -R www-data:www-data /usr/src/yourls # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)COPY --chown=www-data:www-data config-container.php /usr/src/yourls/user/ # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)COPY container-entrypoint.sh /usr/local/bin/ # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["container-entrypoint.sh"]
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)CMD ["php-fpm"]
2024-04-18 21:17:33 UTC
144 MB
1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PHPIZE_DEPSautoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c
PHP_ASC_URLhttps://www.php.net/distributions/php-8.3.16.tar.xz.asc
PHP_CFLAGS-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
PHP_CPPFLAGS-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
PHP_INI_DIR/usr/local/etc/php
PHP_LDFLAGS-Wl,-O1 -pie
PHP_SHA25640d3b4e6cac33d3bcefe096d75a28d4fb4e3a9615eb20a4de55ba139fbfacdd5
PHP_URLhttps://www.php.net/distributions/php-8.3.16.tar.xz
PHP_VERSION8.3.16
YOURLS_SHA25662a95ba766d62f3305d75944cbfe12d5a90c08c88fbf2f6e67150d36412b916f
YOURLS_VERSION1.9.2
[#000] sha256:310acd011b0fc666229ef81942693adcf97c49991b6d41b858d0bb251bfe23d5 - 17.73% (25.6 MB)
[#001] sha256:3b2442a26bea505335348a0d08e61a74e35c2278c384c66431bde7723b1ce29c - 0.0% (225 Bytes)
[#002] sha256:9dc15b0da0c124fd5b5a9d382eb8750e6bb43586b999d667195889264df87b02 - 53.34% (77.1 MB)
[#003] sha256:953bd6ba73d5e08d48c9205fe5789f1ec849d7e8a73c0846d1d65e45f1d01cdc - 0.0% (223 Bytes)
[#004] sha256:c99ef635a4e2c6dccec56db1d28b0c61b8531d6c91c580636accc54c30d916a3 - 8.35% (12.1 MB)
[#005] sha256:af2c6e07c90beb2269051168ed7177dae0a7eaed17af743b822434b19ebf8141 - 0.0% (488 Bytes)
[#006] sha256:7d19a6b61e8695815cd1bd14bf06c624a1adbc3278ecb577d634ff31fb4354fb - 17.77% (25.7 MB)
[#007] sha256:570b3e7b6462dd9c1e1baa69f3b9e3af9c616c235c8bfee5b73f75d0c7f9366a - 0.0% (2.39 KB)
[#008] sha256:4d538a8d8456cae94ef06e84e613c7a92cab121b9f561662c0a5eecd6663146a - 0.0% (247 Bytes)
[#009] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)
[#010] sha256:771da4ba272b72058aacb8deef37ea4f34d42ecb905cbe8067b5f50bde92f296 - 0.01% (8.97 KB)
[#011] sha256:9af85118a1aab8d9925cb2e25b6a1e57526a301ed139b9b25ce8ff5199dad946 - 0.11% (158 KB)
[#012] sha256:c824881fef0df587a858223cb5773fe2e65955e62b8681c6bade71904922ad01 - 0.0% (326 Bytes)
[#013] sha256:ab3014b911c6b447dfdf0c8f6b8dadf78955e05cccb68237c8e86e37383c8af9 - 2.69% (3.88 MB)
[#014] sha256:5266a1c9315122d39d8ebbde5bf221c5a2d7fe2e668e9cf8c98bbd316b516d8e - 0.0% (2 KB)
[#015] sha256:7d5aa189ed6a11373fab92cdb977f2499fe0f7db730467cd3159344add793899 - 0.0% (1.65 KB)
# debian.sh --arch 's390x' out/ 'bookworm' '@1736726400'
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; { echo 'Package: php*'; echo 'Pin: release *'; echo 'Pin-Priority: -1'; } > /etc/apt/preferences.d/no-debian-php # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHPIZE_DEPS=autoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends $PHPIZE_DEPS ca-certificates curl xz-utils ; rm -rf /var/lib/apt/lists/* # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHP_INI_DIR=/usr/local/etc/php
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)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
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHP_CFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHP_CPPFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHP_LDFLAGS=-Wl,-O1 -pie
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV GPG_KEYS=1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHP_VERSION=8.3.16
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHP_URL=https://www.php.net/distributions/php-8.3.16.tar.xz PHP_ASC_URL=https://www.php.net/distributions/php-8.3.16.tar.xz.asc
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHP_SHA256=40d3b4e6cac33d3bcefe096d75a28d4fb4e3a9615eb20a4de55ba139fbfacdd5
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends gnupg; rm -rf /var/lib/apt/lists/*; 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; if [ -n "$PHP_ASC_URL" ]; then 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"; fi; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark > /dev/null; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)COPY docker-php-source /usr/local/bin/ # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)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; ./configure --build="$gnuArch" --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 --disable-phpdbg --with-pear --with-libdir="lib/$debMultiarch" --disable-cgi --enable-fpm --with-fpm-user=www-data --with-fpm-group=www-data ; 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 -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/*; pecl update-channels; rm -rf /tmp/pear ~/.pearrc; php --version # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c docker-php-ext-enable sodium # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-php-entrypoint"]
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)WORKDIR /var/www/html
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; cd /usr/local/etc; if [ -d php-fpm.d ]; then sed 's!=NONE/!=!g' php-fpm.conf.default | tee php-fpm.conf > /dev/null; cp php-fpm.d/www.conf.default php-fpm.d/www.conf; else mkdir php-fpm.d; cp php-fpm.conf.default php-fpm.d/www.conf; { echo '[global]'; echo 'include=etc/php-fpm.d/*.conf'; } | tee php-fpm.conf; fi; { echo '[global]'; echo 'error_log = /proc/self/fd/2'; echo; echo '; https://github.com/docker-library/php/pull/725#issuecomment-443540114'; echo 'log_limit = 8192'; echo; echo '[www]'; echo '; php-fpm closes STDOUT on startup, so sending logs to /proc/self/fd/1 does not work.'; echo '; https://bugs.php.net/bug.php?id=73886'; echo 'access.log = /proc/self/fd/2'; echo; echo 'clear_env = no'; echo; echo '; Ensure worker stdout and stderr are sent to the main error log.'; echo 'catch_workers_output = yes'; echo 'decorate_workers_output = no'; } | tee php-fpm.d/docker.conf; { echo '[global]'; echo 'daemonize = no'; echo; echo '[www]'; echo 'listen = 9000'; } | tee php-fpm.d/zz-docker.conf; mkdir -p "$PHP_INI_DIR/conf.d"; { echo '; https://github.com/docker-library/php/issues/878#issuecomment-938595965'; echo 'fastcgi.logging = Off'; } > "$PHP_INI_DIR/conf.d/docker-fpm.ini" # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGQUIT
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)EXPOSE map[9000/tcp:{}]
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)CMD ["php-fpm"]
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; docker-php-ext-install -j "$(nproc)" bcmath opcache pdo_mysql mysqli # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c { echo 'opcache.memory_consumption=128'; echo 'opcache.interned_strings_buffer=8'; echo 'opcache.max_accelerated_files=4000'; echo 'opcache.revalidate_freq=2'; echo 'opcache.fast_shutdown=1'; } > /usr/local/etc/php/conf.d/opcache-recommended.ini # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ARG YOURLS_VERSION=1.9.2
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ARG YOURLS_SHA256=62a95ba766d62f3305d75944cbfe12d5a90c08c88fbf2f6e67150d36412b916f
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV YOURLS_VERSION=1.9.2
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV YOURLS_SHA256=62a95ba766d62f3305d75944cbfe12d5a90c08c88fbf2f6e67150d36412b916f
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN |2 YOURLS_VERSION=1.9.2 YOURLS_SHA256=62a95ba766d62f3305d75944cbfe12d5a90c08c88fbf2f6e67150d36412b916f /bin/sh -c set -eux; curl -o yourls.tar.gz -fsSL "https://github.com/YOURLS/YOURLS/archive/${YOURLS_VERSION}.tar.gz"; echo "$YOURLS_SHA256 *yourls.tar.gz" | sha256sum -c -; tar -xf yourls.tar.gz -C /usr/src/; mv "/usr/src/YOURLS-${YOURLS_VERSION}" /usr/src/yourls; rm yourls.tar.gz; chown -R www-data:www-data /usr/src/yourls # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)COPY --chown=www-data:www-data config-container.php /usr/src/yourls/user/ # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)COPY container-entrypoint.sh /usr/local/bin/ # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["container-entrypoint.sh"]
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)CMD ["php-fpm"]
Please be careful as this will not just delete the reference but also the actual content!
For example when you have latest and v1.2.3 both pointing to the same image
the deletion of latest will also permanently remove v1.2.3.