2024-10-22 19:03:11 UTC
99.4 MB
39B641343D8C104B2B146DC3F9C39DC0B9698544 E60913E4DF209907D8E30D96659A97C9CF2A795A 1198C0117593497A5EC5C199286AF1F9897469DC
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PHPIZE_DEPSautoconf dpkg-dev dpkg file g++ gcc libc-dev make pkgconf re2c
PHP_ASC_URLhttps://www.php.net/distributions/php-8.2.25.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_SHA256330b54876ea1d05ade12ee9726167332058bccd58dffa1d4e12117f6b4f616b9
PHP_URLhttps://www.php.net/distributions/php-8.2.25.tar.xz
PHP_VERSION8.2.25
[#000] sha256:2689ac6c14fd48d5dbd1df1dd2d317f177e131f689c1a010922edcd778518efd - 3.33% (3.31 MB)
[#001] sha256:f5010c9b606bb9db110c7427a2cfd2620e3bc364ac6b6f3c40af793a0d43de6b - 5.24% (5.21 MB)
[#002] sha256:9d170351fa783a7acacbc3f02a536854413e14ad75fe8230087412cf96fa62d3 - 0.0% (946 Bytes)
[#003] sha256:98a26f6b065abf5cb6de23f0d808247a6f93a7c608505944f4f0ed99b5ae82e3 - 0.0% (220 Bytes)
[#004] sha256:22018d92b0452e597a5ce3ab2bbadc2adfd29ecda38ce08e16ca1c96f1a1624a - 11.65% (11.6 MB)
[#005] sha256:cae05d380a3fb3e954e23adafe496e00b0eae294472b09bbd6408f65e903fb7d - 0.0% (483 Bytes)
[#006] sha256:5a302f8c9e1ab598a36dde4ff174cde78fb277b71cc207349b5a193ef2f3338e - 12.69% (12.6 MB)
[#007] sha256:2b509a41d49c96a34a0d47a7a4c708e8574b2fad731a64b61fdc6d15440dd597 - 0.0% (2.39 KB)
[#008] sha256:6f3adc4e9ba20ed3a91c9776983f143a400e0e11992ab23b19dcbe110c38a0d1 - 0.02% (19.2 KB)
[#009] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)
[#010] sha256:eefb63cfb655bc16cd52a4daaa1164173544b30fe66c3a86199a6905352c3834 - 0.01% (8.96 KB)
[#011] sha256:e8e18c6c829095d28e7bc5fda6e4783ab132c13b2ab8946247cb988f84cd0578 - 26.86% (26.7 MB)
[#012] sha256:20b9071ff4c95c817514680290610d68754e9ba6499a8f4bb9912f840c09090d - 6.22% (6.18 MB)
[#013] sha256:749ad0a8146c657268fbcb5dba50a22770deccffe1d499c2c3809ee5f51b6ee2 - 0.06% (59.2 KB)
[#014] sha256:7bdd6153cd2471a40f8157a31f88d06271f2d8ca21b16b2d6b282e65d3e30712 - 0.0% (388 Bytes)
[#015] sha256:b3510e13a0fc357e641fabb2fb56f56a8aa1a7146f504073d1ea4d18711f1bda - 33.91% (33.7 MB)
[#016] sha256:73f89bbe033c934649b7240bbbba0f851b7bb8e6d759cc24a0988a5afa1cf100 - 0.0% (2.37 KB)
[#017] sha256:9257a7be4f29d5ac1d8b9843ea141a66eba98a4cd980a470fd133886f386ce8a - 0.0% (1.68 KB)
/bin/sh -c #(nop) ADD file:00e6c22c1917031dd97c411814ae384c25a7f2bb91890494a73ea34f3c168453 in /
2024-09-06 22:41:21 UTC/bin/sh -c #(nop) CMD ["/bin/sh"]
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)ENV PHPIZE_DEPS=autoconf dpkg-dev dpkg file g++ gcc libc-dev make pkgconf re2c
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c apk add --no-cache ca-certificates curl openssl tar xz # buildkit
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; adduser -u 82 -D -S -G www-data www-data # buildkit
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)ENV PHP_INI_DIR=/usr/local/etc/php
2024-10-22 19:03:11 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-10-22 19:03:11 UTC (buildkit.dockerfile.v0)ENV PHP_CFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)ENV PHP_CPPFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)ENV PHP_LDFLAGS=-Wl,-O1 -pie
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)ENV GPG_KEYS=39B641343D8C104B2B146DC3F9C39DC0B9698544 E60913E4DF209907D8E30D96659A97C9CF2A795A 1198C0117593497A5EC5C199286AF1F9897469DC
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)ENV PHP_VERSION=8.2.25
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)ENV PHP_URL=https://www.php.net/distributions/php-8.2.25.tar.xz PHP_ASC_URL=https://www.php.net/distributions/php-8.2.25.tar.xz.asc
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)ENV PHP_SHA256=330b54876ea1d05ade12ee9726167332058bccd58dffa1d4e12117f6b4f616b9
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apk add --no-cache --virtual .fetch-deps gnupg; 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; apk del --no-network .fetch-deps # buildkit
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)COPY docker-php-source /usr/local/bin/ # buildkit
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apk add --no-cache --virtual .build-deps $PHPIZE_DEPS argon2-dev coreutils curl-dev gnu-libiconv-dev libsodium-dev libxml2-dev linux-headers oniguruma-dev openssl-dev readline-dev sqlite-dev ; rm -vf /usr/include/iconv.h; 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)"; ./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=/usr --with-openssl --with-readline --with-zlib --disable-phpdbg --with-pear $(test "$gnuArch" = 'riscv64-linux-musl' && echo '--without-pcre-jit') --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; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' )"; apk add --no-cache $runDeps; apk del --no-network .build-deps; pecl update-channels; rm -rf /tmp/pear ~/.pearrc; php --version # buildkit
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ # buildkit
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c docker-php-ext-enable sodium # buildkit
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-php-entrypoint"]
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)WORKDIR /var/www/html
2024-10-22 19:03:11 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-10-22 19:03:11 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGQUIT
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)EXPOSE map[9000/tcp:{}]
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)CMD ["php-fpm"]
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apk add --no-cache bash ghostscript imagemagick ; # buildkit
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -ex; apk add --no-cache --virtual .build-deps $PHPIZE_DEPS freetype-dev icu-dev imagemagick-dev libheif-dev libavif-dev libjpeg-turbo-dev libpng-dev libwebp-dev libzip-dev ; docker-php-ext-configure gd --with-avif --with-freetype --with-jpeg --with-webp ; docker-php-ext-install -j "$(nproc)" bcmath exif gd intl mysqli zip ; curl -fL -o imagick.tgz 'https://pecl.php.net/get/imagick-3.7.0.tgz'; echo '5a364354109029d224bcbb2e82e15b248be9b641227f45e63425c06531792d3e *imagick.tgz' | sha256sum -c -; tar --extract --directory /tmp --file imagick.tgz imagick-3.7.0; grep '^//#endif$' /tmp/imagick-3.7.0/Imagick.stub.php; test "$(grep -c '^//#endif$' /tmp/imagick-3.7.0/Imagick.stub.php)" = '1'; sed -i -e 's!^//#endif$!#endif!' /tmp/imagick-3.7.0/Imagick.stub.php; grep '^//#endif$' /tmp/imagick-3.7.0/Imagick.stub.php && exit 1 || :; docker-php-ext-install /tmp/imagick-3.7.0; rm -rf imagick.tgz /tmp/imagick-3.7.0; out="$(php -r 'exit(0);')"; [ -z "$out" ]; err="$(php -r 'exit(0);' 3>&1 1>&2 2>&3)"; [ -z "$err" ]; extDir="$(php -r 'echo ini_get("extension_dir");')"; [ -d "$extDir" ]; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive "$extDir" | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' )"; apk add --no-network --virtual .wordpress-phpexts-rundeps $runDeps; apk del --no-network .build-deps; ! { ldd "$extDir"/*.so | grep 'not found'; }; err="$(php --version 3>&1 1>&2 2>&3)"; [ -z "$err" ] # buildkit
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; docker-php-ext-enable opcache; { echo 'opcache.memory_consumption=128'; echo 'opcache.interned_strings_buffer=8'; echo 'opcache.max_accelerated_files=4000'; echo 'opcache.revalidate_freq=2'; } > /usr/local/etc/php/conf.d/opcache-recommended.ini # buildkit
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c { echo 'error_reporting = E_ERROR | E_WARNING | E_PARSE | E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_COMPILE_WARNING | E_RECOVERABLE_ERROR'; echo 'display_errors = Off'; echo 'display_startup_errors = Off'; echo 'log_errors = On'; echo 'error_log = /dev/stderr'; echo 'log_errors_max_len = 1024'; echo 'ignore_repeated_errors = On'; echo 'ignore_repeated_source = Off'; echo 'html_errors = Off'; } > /usr/local/etc/php/conf.d/error-logging.ini # buildkit
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; version='6.7-RC1'; sha1='913b63aa12c2a395f3f9f994c20fc96ed2354ffb'; curl -o wordpress.tar.gz -fL "https://wordpress.org/wordpress-$version.tar.gz"; echo "$sha1 *wordpress.tar.gz" | sha1sum -c -; tar -xzf wordpress.tar.gz -C /usr/src/; rm wordpress.tar.gz; [ ! -e /usr/src/wordpress/.htaccess ]; { echo '# BEGIN WordPress'; echo ''; echo 'RewriteEngine On'; echo 'RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]'; echo 'RewriteBase /'; echo 'RewriteRule ^index\.php$ - [L]'; echo 'RewriteCond %{REQUEST_FILENAME} !-f'; echo 'RewriteCond %{REQUEST_FILENAME} !-d'; echo 'RewriteRule . /index.php [L]'; echo ''; echo '# END WordPress'; } > /usr/src/wordpress/.htaccess; chown -R www-data:www-data /usr/src/wordpress; mkdir wp-content; for dir in /usr/src/wordpress/wp-content/*/ cache; do dir="$(basename "${dir%/}")"; mkdir "wp-content/$dir"; done; chown -R www-data:www-data wp-content; chmod -R 1777 wp-content # buildkit
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)VOLUME [/var/www/html]
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)COPY --chown=www-data:www-data wp-config-docker.php /usr/src/wordpress/ # buildkit
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh /usr/local/bin/ # buildkit
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)CMD ["php-fpm"]
2024-10-22 19:03:11 UTC
100 MB
39B641343D8C104B2B146DC3F9C39DC0B9698544 E60913E4DF209907D8E30D96659A97C9CF2A795A 1198C0117593497A5EC5C199286AF1F9897469DC
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PHPIZE_DEPSautoconf dpkg-dev dpkg file g++ gcc libc-dev make pkgconf re2c
PHP_ASC_URLhttps://www.php.net/distributions/php-8.2.25.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_SHA256330b54876ea1d05ade12ee9726167332058bccd58dffa1d4e12117f6b4f616b9
PHP_URLhttps://www.php.net/distributions/php-8.2.25.tar.xz
PHP_VERSION8.2.25
[#000] sha256:43c4264eed91be63b206e17d93e75256a6097070ce643c5e8f0379998b44f170 - 3.45% (3.46 MB)
[#001] sha256:d96c133c922f31d894927d21653257cd3a5e513104e98d3113e71a7f2c468fb8 - 5.32% (5.32 MB)
[#002] sha256:0a48dc562ccff6cead7d519237bfdc3c0af9620b096bc49eca49ab8957b1547f - 0.0% (945 Bytes)
[#003] sha256:d14b839206006f2e1fbfd5f5a77e5723c17e2a11d0734b32876ca470c91d85ab - 0.0% (221 Bytes)
[#004] sha256:ceb8dbd39ff5c723a88089fecc98a42a6daa8835a3a4687e11f4de519ac28b02 - 11.57% (11.6 MB)
[#005] sha256:ecbefb29232519b0a6e5eb4e2ddd28d8c41dbc5e644962bc0f66e8411020cef8 - 0.0% (484 Bytes)
[#006] sha256:d6c975d8003efe68103d60ab404d799e396b4b4b6b432edc40871e78618a76d5 - 12.26% (12.3 MB)
[#007] sha256:a153f77c1fbcc4d80c684cec11ac99dbd20757b879a39398e746e8e0964bbcac - 0.0% (2.39 KB)
[#008] sha256:d8d809165e09ce21422394fe4ecda27388328804c6734f63a8240686b68aa2ca - 0.02% (19.2 KB)
[#009] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)
[#010] sha256:0e8ca7d8e061cf75da7c2837903eaf56575ca36dc6143711a67b269047ed0a50 - 0.01% (8.96 KB)
[#011] sha256:dc647b1255ae4c0250ec3249161186adf5b680bf130b236de4467f9aeb4451d0 - 26.42% (26.5 MB)
[#012] sha256:f12ccc55b42df50f2f976637576693b3189634f1395da497445f68611f8897f7 - 7.23% (7.24 MB)
[#013] sha256:2c1a2b1a06ba7a2233157c54aec66dad368a315f4720658c5b78fb121fe955dc - 0.06% (59.2 KB)
[#014] sha256:34d5478923de42bef440311b16c9b97933771b0dded58fdfddae93a9b4ce2ab9 - 0.0% (387 Bytes)
[#015] sha256:580317c631cebf90e8005258ea4d4fe5de116ee5ea0c4c3eb789b34de4aff043 - 33.66% (33.7 MB)
[#016] sha256:5fc346e0da1a0b53e6a02461817d4758cd51e479781cc3e8840462824e67e87a - 0.0% (2.38 KB)
[#017] sha256:9cd51438ed42804d00aa2a8ccac58ba9e9c7a3489d1d093fb24194635bdf636e - 0.0% (1.68 KB)
/bin/sh -c #(nop) ADD file:5758b97d8301c84a204a6e516241275d785a7cade40b2fb99f01fe122482e283 in /
2024-09-06 22:20:07 UTC/bin/sh -c #(nop) CMD ["/bin/sh"]
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)ENV PHPIZE_DEPS=autoconf dpkg-dev dpkg file g++ gcc libc-dev make pkgconf re2c
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c apk add --no-cache ca-certificates curl openssl tar xz # buildkit
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; adduser -u 82 -D -S -G www-data www-data # buildkit
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)ENV PHP_INI_DIR=/usr/local/etc/php
2024-10-22 19:03:11 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-10-22 19:03:11 UTC (buildkit.dockerfile.v0)ENV PHP_CFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)ENV PHP_CPPFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)ENV PHP_LDFLAGS=-Wl,-O1 -pie
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)ENV GPG_KEYS=39B641343D8C104B2B146DC3F9C39DC0B9698544 E60913E4DF209907D8E30D96659A97C9CF2A795A 1198C0117593497A5EC5C199286AF1F9897469DC
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)ENV PHP_VERSION=8.2.25
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)ENV PHP_URL=https://www.php.net/distributions/php-8.2.25.tar.xz PHP_ASC_URL=https://www.php.net/distributions/php-8.2.25.tar.xz.asc
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)ENV PHP_SHA256=330b54876ea1d05ade12ee9726167332058bccd58dffa1d4e12117f6b4f616b9
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apk add --no-cache --virtual .fetch-deps gnupg; 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; apk del --no-network .fetch-deps # buildkit
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)COPY docker-php-source /usr/local/bin/ # buildkit
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apk add --no-cache --virtual .build-deps $PHPIZE_DEPS argon2-dev coreutils curl-dev gnu-libiconv-dev libsodium-dev libxml2-dev linux-headers oniguruma-dev openssl-dev readline-dev sqlite-dev ; rm -vf /usr/include/iconv.h; 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)"; ./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=/usr --with-openssl --with-readline --with-zlib --disable-phpdbg --with-pear $(test "$gnuArch" = 'riscv64-linux-musl' && echo '--without-pcre-jit') --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; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' )"; apk add --no-cache $runDeps; apk del --no-network .build-deps; pecl update-channels; rm -rf /tmp/pear ~/.pearrc; php --version # buildkit
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ # buildkit
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c docker-php-ext-enable sodium # buildkit
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-php-entrypoint"]
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)WORKDIR /var/www/html
2024-10-22 19:03:11 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-10-22 19:03:11 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGQUIT
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)EXPOSE map[9000/tcp:{}]
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)CMD ["php-fpm"]
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apk add --no-cache bash ghostscript imagemagick ; # buildkit
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -ex; apk add --no-cache --virtual .build-deps $PHPIZE_DEPS freetype-dev icu-dev imagemagick-dev libheif-dev libavif-dev libjpeg-turbo-dev libpng-dev libwebp-dev libzip-dev ; docker-php-ext-configure gd --with-avif --with-freetype --with-jpeg --with-webp ; docker-php-ext-install -j "$(nproc)" bcmath exif gd intl mysqli zip ; curl -fL -o imagick.tgz 'https://pecl.php.net/get/imagick-3.7.0.tgz'; echo '5a364354109029d224bcbb2e82e15b248be9b641227f45e63425c06531792d3e *imagick.tgz' | sha256sum -c -; tar --extract --directory /tmp --file imagick.tgz imagick-3.7.0; grep '^//#endif$' /tmp/imagick-3.7.0/Imagick.stub.php; test "$(grep -c '^//#endif$' /tmp/imagick-3.7.0/Imagick.stub.php)" = '1'; sed -i -e 's!^//#endif$!#endif!' /tmp/imagick-3.7.0/Imagick.stub.php; grep '^//#endif$' /tmp/imagick-3.7.0/Imagick.stub.php && exit 1 || :; docker-php-ext-install /tmp/imagick-3.7.0; rm -rf imagick.tgz /tmp/imagick-3.7.0; out="$(php -r 'exit(0);')"; [ -z "$out" ]; err="$(php -r 'exit(0);' 3>&1 1>&2 2>&3)"; [ -z "$err" ]; extDir="$(php -r 'echo ini_get("extension_dir");')"; [ -d "$extDir" ]; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive "$extDir" | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' )"; apk add --no-network --virtual .wordpress-phpexts-rundeps $runDeps; apk del --no-network .build-deps; ! { ldd "$extDir"/*.so | grep 'not found'; }; err="$(php --version 3>&1 1>&2 2>&3)"; [ -z "$err" ] # buildkit
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; docker-php-ext-enable opcache; { echo 'opcache.memory_consumption=128'; echo 'opcache.interned_strings_buffer=8'; echo 'opcache.max_accelerated_files=4000'; echo 'opcache.revalidate_freq=2'; } > /usr/local/etc/php/conf.d/opcache-recommended.ini # buildkit
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c { echo 'error_reporting = E_ERROR | E_WARNING | E_PARSE | E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_COMPILE_WARNING | E_RECOVERABLE_ERROR'; echo 'display_errors = Off'; echo 'display_startup_errors = Off'; echo 'log_errors = On'; echo 'error_log = /dev/stderr'; echo 'log_errors_max_len = 1024'; echo 'ignore_repeated_errors = On'; echo 'ignore_repeated_source = Off'; echo 'html_errors = Off'; } > /usr/local/etc/php/conf.d/error-logging.ini # buildkit
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; version='6.7-RC1'; sha1='913b63aa12c2a395f3f9f994c20fc96ed2354ffb'; curl -o wordpress.tar.gz -fL "https://wordpress.org/wordpress-$version.tar.gz"; echo "$sha1 *wordpress.tar.gz" | sha1sum -c -; tar -xzf wordpress.tar.gz -C /usr/src/; rm wordpress.tar.gz; [ ! -e /usr/src/wordpress/.htaccess ]; { echo '# BEGIN WordPress'; echo ''; echo 'RewriteEngine On'; echo 'RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]'; echo 'RewriteBase /'; echo 'RewriteRule ^index\.php$ - [L]'; echo 'RewriteCond %{REQUEST_FILENAME} !-f'; echo 'RewriteCond %{REQUEST_FILENAME} !-d'; echo 'RewriteRule . /index.php [L]'; echo ''; echo '# END WordPress'; } > /usr/src/wordpress/.htaccess; chown -R www-data:www-data /usr/src/wordpress; mkdir wp-content; for dir in /usr/src/wordpress/wp-content/*/ cache; do dir="$(basename "${dir%/}")"; mkdir "wp-content/$dir"; done; chown -R www-data:www-data wp-content; chmod -R 1777 wp-content # buildkit
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)VOLUME [/var/www/html]
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)COPY --chown=www-data:www-data wp-config-docker.php /usr/src/wordpress/ # buildkit
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh /usr/local/bin/ # buildkit
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)CMD ["php-fpm"]
2024-10-22 19:03:11 UTC
93.9 MB
39B641343D8C104B2B146DC3F9C39DC0B9698544 E60913E4DF209907D8E30D96659A97C9CF2A795A 1198C0117593497A5EC5C199286AF1F9897469DC
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PHPIZE_DEPSautoconf dpkg-dev dpkg file g++ gcc libc-dev make pkgconf re2c
PHP_ASC_URLhttps://www.php.net/distributions/php-8.2.25.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_SHA256330b54876ea1d05ade12ee9726167332058bccd58dffa1d4e12117f6b4f616b9
PHP_URLhttps://www.php.net/distributions/php-8.2.25.tar.xz
PHP_VERSION8.2.25
[#000] sha256:97964a4b92f04f720ed681b3ec62b071ced94b08b57765c612866e77a71ec087 - 3.42% (3.21 MB)
[#001] sha256:077201e66b85be92a47e209273e3a746b6c9fb70abe63fc08fcfdbc9d9725801 - 5.32% (4.99 MB)
[#002] sha256:8f342726194a9999ab374184edacbc753de40c600fb9b4e9fedc6d530e054ad2 - 0.0% (947 Bytes)
[#003] sha256:534e58cbafd5fc0f6e2372ba8b7dea44a4ee3ddb23dc907076855de93848d047 - 0.0% (220 Bytes)
[#004] sha256:2c20a5dad4f80fb0ace4677169f2947cb5cc21cbeef04e3cad663537c80a90a7 - 12.34% (11.6 MB)
[#005] sha256:0712a76b7e6f7f918b4b1a7d005b928915e8d0903e7f4df292ed65a08b37913e - 0.0% (490 Bytes)
[#006] sha256:34199219341bab36db21bed0e00ed37001d3734917b9efc69c4109f8cfb76639 - 11.9% (11.2 MB)
[#007] sha256:3caa71f68c6ef2dddda7fe1327ad950ffd0baa908d1b8727148284d2ebc5334c - 0.0% (2.39 KB)
[#008] sha256:4a4595b0cdcd4175e744216c51f4955e286456fe39af427df360ec74b2bd7f10 - 0.02% (19 KB)
[#009] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)
[#010] sha256:c25155efc28938d754ad52d82b11365a30a25cd19536a560e26bfd5678fc90ec - 0.01% (8.97 KB)
[#011] sha256:149cb0dce29511a35decceff608850e4cdc0a357d5698508423851743f656c6a - 24.37% (22.9 MB)
[#012] sha256:68deef31b5a5dfcdb144e194b57bdd2b773ce096ccb3abfef5a9dd00e6fe59f2 - 6.67% (6.27 MB)
[#013] sha256:e1ce0c093aab3e8c40a05c9a0c63cd0d7d41a1ece7c1a33145d3107c96f9a794 - 0.06% (59.2 KB)
[#014] sha256:cae3de9b74e745503e0dfb5995c3bccd66054375de8a141382814656ba4e253e - 0.0% (389 Bytes)
[#015] sha256:c6d873743a4a4521198278d538adf1d1b86ecaf098b9d16a8b98f71dd6fc35c7 - 35.89% (33.7 MB)
[#016] sha256:22b66f93420d63243c73ddd6f7b95d0705141c36bdfcb23d92a54f80b3869865 - 0.0% (2.39 KB)
[#017] sha256:92bda63a45d66032610748e949d561f99eb1e7649bebb98a95f93730af93e864 - 0.0% (1.69 KB)
/bin/sh -c #(nop) ADD file:faa3509308d5524875c6afec4d4d1a357118aa1587e5485eca63c2907b37d968 in /
2024-09-06 22:49:24 UTC/bin/sh -c #(nop) CMD ["/bin/sh"]
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)ENV PHPIZE_DEPS=autoconf dpkg-dev dpkg file g++ gcc libc-dev make pkgconf re2c
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c apk add --no-cache ca-certificates curl openssl tar xz # buildkit
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; adduser -u 82 -D -S -G www-data www-data # buildkit
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)ENV PHP_INI_DIR=/usr/local/etc/php
2024-10-22 19:03:11 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-10-22 19:03:11 UTC (buildkit.dockerfile.v0)ENV PHP_CFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)ENV PHP_CPPFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)ENV PHP_LDFLAGS=-Wl,-O1 -pie
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)ENV GPG_KEYS=39B641343D8C104B2B146DC3F9C39DC0B9698544 E60913E4DF209907D8E30D96659A97C9CF2A795A 1198C0117593497A5EC5C199286AF1F9897469DC
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)ENV PHP_VERSION=8.2.25
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)ENV PHP_URL=https://www.php.net/distributions/php-8.2.25.tar.xz PHP_ASC_URL=https://www.php.net/distributions/php-8.2.25.tar.xz.asc
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)ENV PHP_SHA256=330b54876ea1d05ade12ee9726167332058bccd58dffa1d4e12117f6b4f616b9
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apk add --no-cache --virtual .fetch-deps gnupg; 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; apk del --no-network .fetch-deps # buildkit
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)COPY docker-php-source /usr/local/bin/ # buildkit
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apk add --no-cache --virtual .build-deps $PHPIZE_DEPS argon2-dev coreutils curl-dev gnu-libiconv-dev libsodium-dev libxml2-dev linux-headers oniguruma-dev openssl-dev readline-dev sqlite-dev ; rm -vf /usr/include/iconv.h; 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)"; ./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=/usr --with-openssl --with-readline --with-zlib --disable-phpdbg --with-pear $(test "$gnuArch" = 'riscv64-linux-musl' && echo '--without-pcre-jit') --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; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' )"; apk add --no-cache $runDeps; apk del --no-network .build-deps; pecl update-channels; rm -rf /tmp/pear ~/.pearrc; php --version # buildkit
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ # buildkit
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c docker-php-ext-enable sodium # buildkit
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-php-entrypoint"]
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)WORKDIR /var/www/html
2024-10-22 19:03:11 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-10-22 19:03:11 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGQUIT
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)EXPOSE map[9000/tcp:{}]
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)CMD ["php-fpm"]
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apk add --no-cache bash ghostscript imagemagick ; # buildkit
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -ex; apk add --no-cache --virtual .build-deps $PHPIZE_DEPS freetype-dev icu-dev imagemagick-dev libheif-dev libavif-dev libjpeg-turbo-dev libpng-dev libwebp-dev libzip-dev ; docker-php-ext-configure gd --with-avif --with-freetype --with-jpeg --with-webp ; docker-php-ext-install -j "$(nproc)" bcmath exif gd intl mysqli zip ; curl -fL -o imagick.tgz 'https://pecl.php.net/get/imagick-3.7.0.tgz'; echo '5a364354109029d224bcbb2e82e15b248be9b641227f45e63425c06531792d3e *imagick.tgz' | sha256sum -c -; tar --extract --directory /tmp --file imagick.tgz imagick-3.7.0; grep '^//#endif$' /tmp/imagick-3.7.0/Imagick.stub.php; test "$(grep -c '^//#endif$' /tmp/imagick-3.7.0/Imagick.stub.php)" = '1'; sed -i -e 's!^//#endif$!#endif!' /tmp/imagick-3.7.0/Imagick.stub.php; grep '^//#endif$' /tmp/imagick-3.7.0/Imagick.stub.php && exit 1 || :; docker-php-ext-install /tmp/imagick-3.7.0; rm -rf imagick.tgz /tmp/imagick-3.7.0; out="$(php -r 'exit(0);')"; [ -z "$out" ]; err="$(php -r 'exit(0);' 3>&1 1>&2 2>&3)"; [ -z "$err" ]; extDir="$(php -r 'echo ini_get("extension_dir");')"; [ -d "$extDir" ]; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive "$extDir" | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' )"; apk add --no-network --virtual .wordpress-phpexts-rundeps $runDeps; apk del --no-network .build-deps; ! { ldd "$extDir"/*.so | grep 'not found'; }; err="$(php --version 3>&1 1>&2 2>&3)"; [ -z "$err" ] # buildkit
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; docker-php-ext-enable opcache; { echo 'opcache.memory_consumption=128'; echo 'opcache.interned_strings_buffer=8'; echo 'opcache.max_accelerated_files=4000'; echo 'opcache.revalidate_freq=2'; } > /usr/local/etc/php/conf.d/opcache-recommended.ini # buildkit
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c { echo 'error_reporting = E_ERROR | E_WARNING | E_PARSE | E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_COMPILE_WARNING | E_RECOVERABLE_ERROR'; echo 'display_errors = Off'; echo 'display_startup_errors = Off'; echo 'log_errors = On'; echo 'error_log = /dev/stderr'; echo 'log_errors_max_len = 1024'; echo 'ignore_repeated_errors = On'; echo 'ignore_repeated_source = Off'; echo 'html_errors = Off'; } > /usr/local/etc/php/conf.d/error-logging.ini # buildkit
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; version='6.7-RC1'; sha1='913b63aa12c2a395f3f9f994c20fc96ed2354ffb'; curl -o wordpress.tar.gz -fL "https://wordpress.org/wordpress-$version.tar.gz"; echo "$sha1 *wordpress.tar.gz" | sha1sum -c -; tar -xzf wordpress.tar.gz -C /usr/src/; rm wordpress.tar.gz; [ ! -e /usr/src/wordpress/.htaccess ]; { echo '# BEGIN WordPress'; echo ''; echo 'RewriteEngine On'; echo 'RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]'; echo 'RewriteBase /'; echo 'RewriteRule ^index\.php$ - [L]'; echo 'RewriteCond %{REQUEST_FILENAME} !-f'; echo 'RewriteCond %{REQUEST_FILENAME} !-d'; echo 'RewriteRule . /index.php [L]'; echo ''; echo '# END WordPress'; } > /usr/src/wordpress/.htaccess; chown -R www-data:www-data /usr/src/wordpress; mkdir wp-content; for dir in /usr/src/wordpress/wp-content/*/ cache; do dir="$(basename "${dir%/}")"; mkdir "wp-content/$dir"; done; chown -R www-data:www-data wp-content; chmod -R 1777 wp-content # buildkit
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)VOLUME [/var/www/html]
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)COPY --chown=www-data:www-data wp-config-docker.php /usr/src/wordpress/ # buildkit
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh /usr/local/bin/ # buildkit
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)CMD ["php-fpm"]
2024-10-22 19:03:11 UTC
92.6 MB
39B641343D8C104B2B146DC3F9C39DC0B9698544 E60913E4DF209907D8E30D96659A97C9CF2A795A 1198C0117593497A5EC5C199286AF1F9897469DC
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PHPIZE_DEPSautoconf dpkg-dev dpkg file g++ gcc libc-dev make pkgconf re2c
PHP_ASC_URLhttps://www.php.net/distributions/php-8.2.25.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_SHA256330b54876ea1d05ade12ee9726167332058bccd58dffa1d4e12117f6b4f616b9
PHP_URLhttps://www.php.net/distributions/php-8.2.25.tar.xz
PHP_VERSION8.2.25
[#000] sha256:da2748c71804914f58a58693c998a4885dd24623380daf301f4a1a88185cb4c8 - 3.19% (2.95 MB)
[#001] sha256:a8891b9ad797d2ab4286de450552ad1b01432f19b40117a77957da9b776aef79 - 5.04% (4.67 MB)
[#002] sha256:e4b3a40bd171b3a6ed00704448d5305b7d2f7669e004cdd18e65546b736dc82e - 0.0% (941 Bytes)
[#003] sha256:cde5bf81ec482329b1688271c76052169e5a044348e29d19a69c9659d09e46e0 - 0.0% (214 Bytes)
[#004] sha256:70944fb86567cf2ce66531adb4d9047a53b7e66ff1c8fe1ded8e5f4f62a865f4 - 12.51% (11.6 MB)
[#005] sha256:23fbebe8652711954b61acd4bf1d4123151000c6054a172a67882fdd3fe5c46c - 0.0% (486 Bytes)
[#006] sha256:0ab5cd72769d63ec227242951343acf30f5bf135bf5451f32ae9f89e0ff76ca5 - 11.3% (10.5 MB)
[#007] sha256:5b779e44457f1ac6e9ca2d89ad8fc932ef2ed858a6f7f056a99e26643b21f3ca - 0.0% (2.38 KB)
[#008] sha256:7c85940ab9aa35082a97b0d903e64515c442bfbd596cdc7472decaf013517aab - 0.02% (19 KB)
[#009] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)
[#010] sha256:a92a9ed907a7f774006699d75f22519d0bae34bb6678d3d6e872d0530b389f22 - 0.01% (8.96 KB)
[#011] sha256:249314b06b7e5bc0e6cb57ebabbce806bd308474b3de61d88dc4a5c8568b0ec7 - 23.45% (21.7 MB)
[#012] sha256:969f2e8bfd9e7e3c791753efd144290127e1329804093b75fe239eecd83597a9 - 8.02% (7.43 MB)
[#013] sha256:cf8b76ce7718096866ee6ad12c5cc84510388b4ce0df419e30372870a1418ae0 - 0.06% (59.2 KB)
[#014] sha256:09ce93e60be143ee91d4957fb0285908a3299e47cb992f3026da7289f997f4df - 0.0% (388 Bytes)
[#015] sha256:2994f7eb8a7762e3b89141ce1bf4c1b38925d9fe54868b0ab2769212d553c6e3 - 36.39% (33.7 MB)
[#016] sha256:2496f44d0bdf7cf68e88f6fc68a5f4ff200a82f881cc6fb1cddc260cc5831962 - 0.0% (2.38 KB)
[#017] sha256:0b9c86b12280b415f14c620bf002468a3937842a58836bca139b9959e954d5ac - 0.0% (1.69 KB)
/bin/sh -c #(nop) ADD file:8096a7e97160f837a432988b8138ffab07ff212be781f530c8baa2067265d071 in /
2024-09-06 22:08:01 UTC/bin/sh -c #(nop) CMD ["/bin/sh"]
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)ENV PHPIZE_DEPS=autoconf dpkg-dev dpkg file g++ gcc libc-dev make pkgconf re2c
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c apk add --no-cache ca-certificates curl openssl tar xz # buildkit
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; adduser -u 82 -D -S -G www-data www-data # buildkit
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)ENV PHP_INI_DIR=/usr/local/etc/php
2024-10-22 19:03:11 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-10-22 19:03:11 UTC (buildkit.dockerfile.v0)ENV PHP_CFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)ENV PHP_CPPFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)ENV PHP_LDFLAGS=-Wl,-O1 -pie
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)ENV GPG_KEYS=39B641343D8C104B2B146DC3F9C39DC0B9698544 E60913E4DF209907D8E30D96659A97C9CF2A795A 1198C0117593497A5EC5C199286AF1F9897469DC
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)ENV PHP_VERSION=8.2.25
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)ENV PHP_URL=https://www.php.net/distributions/php-8.2.25.tar.xz PHP_ASC_URL=https://www.php.net/distributions/php-8.2.25.tar.xz.asc
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)ENV PHP_SHA256=330b54876ea1d05ade12ee9726167332058bccd58dffa1d4e12117f6b4f616b9
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apk add --no-cache --virtual .fetch-deps gnupg; 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; apk del --no-network .fetch-deps # buildkit
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)COPY docker-php-source /usr/local/bin/ # buildkit
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apk add --no-cache --virtual .build-deps $PHPIZE_DEPS argon2-dev coreutils curl-dev gnu-libiconv-dev libsodium-dev libxml2-dev linux-headers oniguruma-dev openssl-dev readline-dev sqlite-dev ; rm -vf /usr/include/iconv.h; 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)"; ./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=/usr --with-openssl --with-readline --with-zlib --disable-phpdbg --with-pear $(test "$gnuArch" = 'riscv64-linux-musl' && echo '--without-pcre-jit') --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; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' )"; apk add --no-cache $runDeps; apk del --no-network .build-deps; pecl update-channels; rm -rf /tmp/pear ~/.pearrc; php --version # buildkit
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ # buildkit
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c docker-php-ext-enable sodium # buildkit
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-php-entrypoint"]
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)WORKDIR /var/www/html
2024-10-22 19:03:11 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-10-22 19:03:11 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGQUIT
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)EXPOSE map[9000/tcp:{}]
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)CMD ["php-fpm"]
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apk add --no-cache bash ghostscript imagemagick ; # buildkit
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -ex; apk add --no-cache --virtual .build-deps $PHPIZE_DEPS freetype-dev icu-dev imagemagick-dev libheif-dev libavif-dev libjpeg-turbo-dev libpng-dev libwebp-dev libzip-dev ; docker-php-ext-configure gd --with-avif --with-freetype --with-jpeg --with-webp ; docker-php-ext-install -j "$(nproc)" bcmath exif gd intl mysqli zip ; curl -fL -o imagick.tgz 'https://pecl.php.net/get/imagick-3.7.0.tgz'; echo '5a364354109029d224bcbb2e82e15b248be9b641227f45e63425c06531792d3e *imagick.tgz' | sha256sum -c -; tar --extract --directory /tmp --file imagick.tgz imagick-3.7.0; grep '^//#endif$' /tmp/imagick-3.7.0/Imagick.stub.php; test "$(grep -c '^//#endif$' /tmp/imagick-3.7.0/Imagick.stub.php)" = '1'; sed -i -e 's!^//#endif$!#endif!' /tmp/imagick-3.7.0/Imagick.stub.php; grep '^//#endif$' /tmp/imagick-3.7.0/Imagick.stub.php && exit 1 || :; docker-php-ext-install /tmp/imagick-3.7.0; rm -rf imagick.tgz /tmp/imagick-3.7.0; out="$(php -r 'exit(0);')"; [ -z "$out" ]; err="$(php -r 'exit(0);' 3>&1 1>&2 2>&3)"; [ -z "$err" ]; extDir="$(php -r 'echo ini_get("extension_dir");')"; [ -d "$extDir" ]; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive "$extDir" | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' )"; apk add --no-network --virtual .wordpress-phpexts-rundeps $runDeps; apk del --no-network .build-deps; ! { ldd "$extDir"/*.so | grep 'not found'; }; err="$(php --version 3>&1 1>&2 2>&3)"; [ -z "$err" ] # buildkit
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; docker-php-ext-enable opcache; { echo 'opcache.memory_consumption=128'; echo 'opcache.interned_strings_buffer=8'; echo 'opcache.max_accelerated_files=4000'; echo 'opcache.revalidate_freq=2'; } > /usr/local/etc/php/conf.d/opcache-recommended.ini # buildkit
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c { echo 'error_reporting = E_ERROR | E_WARNING | E_PARSE | E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_COMPILE_WARNING | E_RECOVERABLE_ERROR'; echo 'display_errors = Off'; echo 'display_startup_errors = Off'; echo 'log_errors = On'; echo 'error_log = /dev/stderr'; echo 'log_errors_max_len = 1024'; echo 'ignore_repeated_errors = On'; echo 'ignore_repeated_source = Off'; echo 'html_errors = Off'; } > /usr/local/etc/php/conf.d/error-logging.ini # buildkit
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; version='6.7-RC1'; sha1='913b63aa12c2a395f3f9f994c20fc96ed2354ffb'; curl -o wordpress.tar.gz -fL "https://wordpress.org/wordpress-$version.tar.gz"; echo "$sha1 *wordpress.tar.gz" | sha1sum -c -; tar -xzf wordpress.tar.gz -C /usr/src/; rm wordpress.tar.gz; [ ! -e /usr/src/wordpress/.htaccess ]; { echo '# BEGIN WordPress'; echo ''; echo 'RewriteEngine On'; echo 'RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]'; echo 'RewriteBase /'; echo 'RewriteRule ^index\.php$ - [L]'; echo 'RewriteCond %{REQUEST_FILENAME} !-f'; echo 'RewriteCond %{REQUEST_FILENAME} !-d'; echo 'RewriteRule . /index.php [L]'; echo ''; echo '# END WordPress'; } > /usr/src/wordpress/.htaccess; chown -R www-data:www-data /usr/src/wordpress; mkdir wp-content; for dir in /usr/src/wordpress/wp-content/*/ cache; do dir="$(basename "${dir%/}")"; mkdir "wp-content/$dir"; done; chown -R www-data:www-data wp-content; chmod -R 1777 wp-content # buildkit
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)VOLUME [/var/www/html]
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)COPY --chown=www-data:www-data wp-config-docker.php /usr/src/wordpress/ # buildkit
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh /usr/local/bin/ # buildkit
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)CMD ["php-fpm"]
2024-10-22 19:03:11 UTC
102 MB
39B641343D8C104B2B146DC3F9C39DC0B9698544 E60913E4DF209907D8E30D96659A97C9CF2A795A 1198C0117593497A5EC5C199286AF1F9897469DC
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PHPIZE_DEPSautoconf dpkg-dev dpkg file g++ gcc libc-dev make pkgconf re2c
PHP_ASC_URLhttps://www.php.net/distributions/php-8.2.25.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_SHA256330b54876ea1d05ade12ee9726167332058bccd58dffa1d4e12117f6b4f616b9
PHP_URLhttps://www.php.net/distributions/php-8.2.25.tar.xz
PHP_VERSION8.2.25
[#000] sha256:cf04c63912e16506c4413937c7f4579018e4bb25c272d989789cfba77b12f951 - 3.84% (3.9 MB)
[#001] sha256:264df05ba819175767d82cc01697d7f7d371d0468273ffffb308b6b85bddcc7d - 5.68% (5.76 MB)
[#002] sha256:b19693f1fe8f6d96ea9523a5fd361b05163bd3c9b0476d400db2e699e40aaa92 - 0.0% (945 Bytes)
[#003] sha256:5ebef5cc9bae3e7065c78400102c221ef766371a514d412f543ac0fdb2cfa943 - 0.0% (220 Bytes)
[#004] sha256:bbd417feaf3bffdeefd75dadf8b52fb5dff29776dc331d53f5cd12943754bb61 - 11.41% (11.6 MB)
[#005] sha256:5b809c2d3d6f5c42b99242804a80524bb9f5dd7941ccb1c413520af51505f27a - 0.0% (492 Bytes)
[#006] sha256:5b3acf5d05da258835cb82e874eb0e9dc91484690f62b816745e60fbbd87add9 - 12.15% (12.3 MB)
[#007] sha256:a3c9524377b9e4f51eaa1196550ddcc467867a56f81c0c835c163b0cf6f157f3 - 0.0% (2.39 KB)
[#008] sha256:cb5f1df733dae0f188c35e1f94cef0a3090d61501d9cf417e7a25bb91ce43f00 - 0.02% (19 KB)
[#009] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)
[#010] sha256:ec3e87b5158e41bf92857c5f529fbc7bc7ee748be51165ae349b20d0aa2c2f95 - 0.01% (8.96 KB)
[#011] sha256:6a1d9e361903c85124ed93a8e4e71e709d6459ae50c33ec48eee57332a430bf3 - 26.18% (26.6 MB)
[#012] sha256:29ad53681c8354a806cac35d8039dd4869653d1a414ce000a015e3415d50fd66 - 7.48% (7.59 MB)
[#013] sha256:658b1dfe5bac3d170c5374f51903f1c8d772862a3d30baa4688012362941ecc0 - 0.06% (59.2 KB)
[#014] sha256:718def420821ce8c67ace566cbd196813abd905cf1837fadc855aad04a768871 - 0.0% (385 Bytes)
[#015] sha256:6f820c8d557532082b604e5815f91332a80e7d2a51e88f56354882d7f89ae34a - 33.19% (33.7 MB)
[#016] sha256:fe4faa3b1589f53a1d94716f4b5f8291ae9a1a061aa6ac4acbec2546de9bf71b - 0.0% (2.38 KB)
[#017] sha256:1b283428d7b98aefee6470ca1233b65e03beba873e9cd753ba8bef851c5ab384 - 0.0% (1.68 KB)
/bin/sh -c #(nop) ADD file:ee5bb8409915b11413f44cce4c22fed658aba4fb078a448e08dd4ac9a23581f2 in /
2024-09-06 22:44:11 UTC/bin/sh -c #(nop) CMD ["/bin/sh"]
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)ENV PHPIZE_DEPS=autoconf dpkg-dev dpkg file g++ gcc libc-dev make pkgconf re2c
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c apk add --no-cache ca-certificates curl openssl tar xz # buildkit
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; adduser -u 82 -D -S -G www-data www-data # buildkit
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)ENV PHP_INI_DIR=/usr/local/etc/php
2024-10-22 19:03:11 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-10-22 19:03:11 UTC (buildkit.dockerfile.v0)ENV PHP_CFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)ENV PHP_CPPFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)ENV PHP_LDFLAGS=-Wl,-O1 -pie
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)ENV GPG_KEYS=39B641343D8C104B2B146DC3F9C39DC0B9698544 E60913E4DF209907D8E30D96659A97C9CF2A795A 1198C0117593497A5EC5C199286AF1F9897469DC
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)ENV PHP_VERSION=8.2.25
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)ENV PHP_URL=https://www.php.net/distributions/php-8.2.25.tar.xz PHP_ASC_URL=https://www.php.net/distributions/php-8.2.25.tar.xz.asc
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)ENV PHP_SHA256=330b54876ea1d05ade12ee9726167332058bccd58dffa1d4e12117f6b4f616b9
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apk add --no-cache --virtual .fetch-deps gnupg; 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; apk del --no-network .fetch-deps # buildkit
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)COPY docker-php-source /usr/local/bin/ # buildkit
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apk add --no-cache --virtual .build-deps $PHPIZE_DEPS argon2-dev coreutils curl-dev gnu-libiconv-dev libsodium-dev libxml2-dev linux-headers oniguruma-dev openssl-dev readline-dev sqlite-dev ; rm -vf /usr/include/iconv.h; 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)"; ./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=/usr --with-openssl --with-readline --with-zlib --disable-phpdbg --with-pear $(test "$gnuArch" = 'riscv64-linux-musl' && echo '--without-pcre-jit') --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; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' )"; apk add --no-cache $runDeps; apk del --no-network .build-deps; pecl update-channels; rm -rf /tmp/pear ~/.pearrc; php --version # buildkit
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ # buildkit
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c docker-php-ext-enable sodium # buildkit
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-php-entrypoint"]
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)WORKDIR /var/www/html
2024-10-22 19:03:11 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-10-22 19:03:11 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGQUIT
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)EXPOSE map[9000/tcp:{}]
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)CMD ["php-fpm"]
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apk add --no-cache bash ghostscript imagemagick ; # buildkit
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -ex; apk add --no-cache --virtual .build-deps $PHPIZE_DEPS freetype-dev icu-dev imagemagick-dev libheif-dev libavif-dev libjpeg-turbo-dev libpng-dev libwebp-dev libzip-dev ; docker-php-ext-configure gd --with-avif --with-freetype --with-jpeg --with-webp ; docker-php-ext-install -j "$(nproc)" bcmath exif gd intl mysqli zip ; curl -fL -o imagick.tgz 'https://pecl.php.net/get/imagick-3.7.0.tgz'; echo '5a364354109029d224bcbb2e82e15b248be9b641227f45e63425c06531792d3e *imagick.tgz' | sha256sum -c -; tar --extract --directory /tmp --file imagick.tgz imagick-3.7.0; grep '^//#endif$' /tmp/imagick-3.7.0/Imagick.stub.php; test "$(grep -c '^//#endif$' /tmp/imagick-3.7.0/Imagick.stub.php)" = '1'; sed -i -e 's!^//#endif$!#endif!' /tmp/imagick-3.7.0/Imagick.stub.php; grep '^//#endif$' /tmp/imagick-3.7.0/Imagick.stub.php && exit 1 || :; docker-php-ext-install /tmp/imagick-3.7.0; rm -rf imagick.tgz /tmp/imagick-3.7.0; out="$(php -r 'exit(0);')"; [ -z "$out" ]; err="$(php -r 'exit(0);' 3>&1 1>&2 2>&3)"; [ -z "$err" ]; extDir="$(php -r 'echo ini_get("extension_dir");')"; [ -d "$extDir" ]; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive "$extDir" | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' )"; apk add --no-network --virtual .wordpress-phpexts-rundeps $runDeps; apk del --no-network .build-deps; ! { ldd "$extDir"/*.so | grep 'not found'; }; err="$(php --version 3>&1 1>&2 2>&3)"; [ -z "$err" ] # buildkit
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; docker-php-ext-enable opcache; { echo 'opcache.memory_consumption=128'; echo 'opcache.interned_strings_buffer=8'; echo 'opcache.max_accelerated_files=4000'; echo 'opcache.revalidate_freq=2'; } > /usr/local/etc/php/conf.d/opcache-recommended.ini # buildkit
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c { echo 'error_reporting = E_ERROR | E_WARNING | E_PARSE | E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_COMPILE_WARNING | E_RECOVERABLE_ERROR'; echo 'display_errors = Off'; echo 'display_startup_errors = Off'; echo 'log_errors = On'; echo 'error_log = /dev/stderr'; echo 'log_errors_max_len = 1024'; echo 'ignore_repeated_errors = On'; echo 'ignore_repeated_source = Off'; echo 'html_errors = Off'; } > /usr/local/etc/php/conf.d/error-logging.ini # buildkit
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; version='6.7-RC1'; sha1='913b63aa12c2a395f3f9f994c20fc96ed2354ffb'; curl -o wordpress.tar.gz -fL "https://wordpress.org/wordpress-$version.tar.gz"; echo "$sha1 *wordpress.tar.gz" | sha1sum -c -; tar -xzf wordpress.tar.gz -C /usr/src/; rm wordpress.tar.gz; [ ! -e /usr/src/wordpress/.htaccess ]; { echo '# BEGIN WordPress'; echo ''; echo 'RewriteEngine On'; echo 'RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]'; echo 'RewriteBase /'; echo 'RewriteRule ^index\.php$ - [L]'; echo 'RewriteCond %{REQUEST_FILENAME} !-f'; echo 'RewriteCond %{REQUEST_FILENAME} !-d'; echo 'RewriteRule . /index.php [L]'; echo ''; echo '# END WordPress'; } > /usr/src/wordpress/.htaccess; chown -R www-data:www-data /usr/src/wordpress; mkdir wp-content; for dir in /usr/src/wordpress/wp-content/*/ cache; do dir="$(basename "${dir%/}")"; mkdir "wp-content/$dir"; done; chown -R www-data:www-data wp-content; chmod -R 1777 wp-content # buildkit
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)VOLUME [/var/www/html]
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)COPY --chown=www-data:www-data wp-config-docker.php /usr/src/wordpress/ # buildkit
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh /usr/local/bin/ # buildkit
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)CMD ["php-fpm"]
2024-10-22 19:03:11 UTC
101 MB
39B641343D8C104B2B146DC3F9C39DC0B9698544 E60913E4DF209907D8E30D96659A97C9CF2A795A 1198C0117593497A5EC5C199286AF1F9897469DC
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PHPIZE_DEPSautoconf dpkg-dev dpkg file g++ gcc libc-dev make pkgconf re2c
PHP_ASC_URLhttps://www.php.net/distributions/php-8.2.25.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_SHA256330b54876ea1d05ade12ee9726167332058bccd58dffa1d4e12117f6b4f616b9
PHP_URLhttps://www.php.net/distributions/php-8.2.25.tar.xz
PHP_VERSION8.2.25
[#000] sha256:b5caf700653f785a3409fb40484075ff91a3a7a84b79ad6a91b165589b35fbc0 - 3.37% (3.41 MB)
[#001] sha256:d5ba6d71b7953e5a539b29c94897df8abc5c8913c9f8cdd74dbe70ff782c2c41 - 5.26% (5.31 MB)
[#002] sha256:5e67a84c448da04979ae1b4f74b62a87996c3c2cf1c1638e98af4254a5cb01a0 - 0.0% (946 Bytes)
[#003] sha256:5d6cb5989066db70ae6367501c203d0179801d5021cba5499e956b2f3adf9274 - 0.0% (222 Bytes)
[#004] sha256:04a295d3d154ccd66fa8a5d29c34ed4749e640184bf0a77e40ae7c40031fcb31 - 11.47% (11.6 MB)
[#005] sha256:f6feede72bc57d45c539a8c7a9d2603289e42c7c7e60dbaea3735de7683fb911 - 0.0% (494 Bytes)
[#006] sha256:5ab667e0e41b7d2913cfbc9cf7ef923cc361ceb0d221cd889b9dfd17182e20c2 - 12.63% (12.7 MB)
[#007] sha256:704ca06873e3dcdf12afaa067ecc2e3158ddd1ea1b7f9f5ef1707eb61ddbd2bd - 0.0% (2.39 KB)
[#008] sha256:2d10e2dcbcd55645a6c4ea578cfc4205eda7454b217dd56ef62a294556207a0b - 0.02% (19 KB)
[#009] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)
[#010] sha256:d0ae3702b3b68842f499e80a580c5290d9a68c7442d10026dcf40e24d322402d - 0.01% (8.97 KB)
[#011] sha256:ed9caa7515fd7ecfb0ee97974cb01ad0f2a8a9453a2fd2dec322790d24f40143 - 26.85% (27.1 MB)
[#012] sha256:806d022b1c74ee2bb0c7c56692b63faa8ae673889fb3a96881181dd5d379d639 - 6.94% (7 MB)
[#013] sha256:33415593a0358fb0a51d348e289414004e8e653aed701bdfc81537d53507c76e - 0.06% (59.2 KB)
[#014] sha256:bf67c61a6071d6f75d4de19222e439d6ea2b7725b9ed19a49d0d305ca17c36f6 - 0.0% (388 Bytes)
[#015] sha256:128e976b2b2ad1c34542badc44c1e5b5b2e6d6d287fe3499f8dbbd6b26ca3710 - 33.39% (33.7 MB)
[#016] sha256:851d90f93adab3db6e8063acaff235f5edd7e88f30c46aa16ff5d8dcf724e0bd - 0.0% (2.38 KB)
[#017] sha256:86dbfb83b3ff739494ab622de1954809209526456ff8f19706f270410bd4fa98 - 0.0% (1.69 KB)
/bin/sh -c #(nop) ADD file:c1f14e23acaff59e2dc7a11f65f8fdfbed8be1350a135493a06b692ecefb26cc in /
2024-09-06 22:26:07 UTC/bin/sh -c #(nop) CMD ["/bin/sh"]
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)ENV PHPIZE_DEPS=autoconf dpkg-dev dpkg file g++ gcc libc-dev make pkgconf re2c
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c apk add --no-cache ca-certificates curl openssl tar xz # buildkit
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; adduser -u 82 -D -S -G www-data www-data # buildkit
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)ENV PHP_INI_DIR=/usr/local/etc/php
2024-10-22 19:03:11 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-10-22 19:03:11 UTC (buildkit.dockerfile.v0)ENV PHP_CFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)ENV PHP_CPPFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)ENV PHP_LDFLAGS=-Wl,-O1 -pie
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)ENV GPG_KEYS=39B641343D8C104B2B146DC3F9C39DC0B9698544 E60913E4DF209907D8E30D96659A97C9CF2A795A 1198C0117593497A5EC5C199286AF1F9897469DC
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)ENV PHP_VERSION=8.2.25
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)ENV PHP_URL=https://www.php.net/distributions/php-8.2.25.tar.xz PHP_ASC_URL=https://www.php.net/distributions/php-8.2.25.tar.xz.asc
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)ENV PHP_SHA256=330b54876ea1d05ade12ee9726167332058bccd58dffa1d4e12117f6b4f616b9
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apk add --no-cache --virtual .fetch-deps gnupg; 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; apk del --no-network .fetch-deps # buildkit
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)COPY docker-php-source /usr/local/bin/ # buildkit
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apk add --no-cache --virtual .build-deps $PHPIZE_DEPS argon2-dev coreutils curl-dev gnu-libiconv-dev libsodium-dev libxml2-dev linux-headers oniguruma-dev openssl-dev readline-dev sqlite-dev ; rm -vf /usr/include/iconv.h; 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)"; ./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=/usr --with-openssl --with-readline --with-zlib --disable-phpdbg --with-pear $(test "$gnuArch" = 'riscv64-linux-musl' && echo '--without-pcre-jit') --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; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' )"; apk add --no-cache $runDeps; apk del --no-network .build-deps; pecl update-channels; rm -rf /tmp/pear ~/.pearrc; php --version # buildkit
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ # buildkit
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c docker-php-ext-enable sodium # buildkit
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-php-entrypoint"]
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)WORKDIR /var/www/html
2024-10-22 19:03:11 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-10-22 19:03:11 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGQUIT
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)EXPOSE map[9000/tcp:{}]
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)CMD ["php-fpm"]
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apk add --no-cache bash ghostscript imagemagick ; # buildkit
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -ex; apk add --no-cache --virtual .build-deps $PHPIZE_DEPS freetype-dev icu-dev imagemagick-dev libheif-dev libavif-dev libjpeg-turbo-dev libpng-dev libwebp-dev libzip-dev ; docker-php-ext-configure gd --with-avif --with-freetype --with-jpeg --with-webp ; docker-php-ext-install -j "$(nproc)" bcmath exif gd intl mysqli zip ; curl -fL -o imagick.tgz 'https://pecl.php.net/get/imagick-3.7.0.tgz'; echo '5a364354109029d224bcbb2e82e15b248be9b641227f45e63425c06531792d3e *imagick.tgz' | sha256sum -c -; tar --extract --directory /tmp --file imagick.tgz imagick-3.7.0; grep '^//#endif$' /tmp/imagick-3.7.0/Imagick.stub.php; test "$(grep -c '^//#endif$' /tmp/imagick-3.7.0/Imagick.stub.php)" = '1'; sed -i -e 's!^//#endif$!#endif!' /tmp/imagick-3.7.0/Imagick.stub.php; grep '^//#endif$' /tmp/imagick-3.7.0/Imagick.stub.php && exit 1 || :; docker-php-ext-install /tmp/imagick-3.7.0; rm -rf imagick.tgz /tmp/imagick-3.7.0; out="$(php -r 'exit(0);')"; [ -z "$out" ]; err="$(php -r 'exit(0);' 3>&1 1>&2 2>&3)"; [ -z "$err" ]; extDir="$(php -r 'echo ini_get("extension_dir");')"; [ -d "$extDir" ]; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive "$extDir" | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' )"; apk add --no-network --virtual .wordpress-phpexts-rundeps $runDeps; apk del --no-network .build-deps; ! { ldd "$extDir"/*.so | grep 'not found'; }; err="$(php --version 3>&1 1>&2 2>&3)"; [ -z "$err" ] # buildkit
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; docker-php-ext-enable opcache; { echo 'opcache.memory_consumption=128'; echo 'opcache.interned_strings_buffer=8'; echo 'opcache.max_accelerated_files=4000'; echo 'opcache.revalidate_freq=2'; } > /usr/local/etc/php/conf.d/opcache-recommended.ini # buildkit
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c { echo 'error_reporting = E_ERROR | E_WARNING | E_PARSE | E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_COMPILE_WARNING | E_RECOVERABLE_ERROR'; echo 'display_errors = Off'; echo 'display_startup_errors = Off'; echo 'log_errors = On'; echo 'error_log = /dev/stderr'; echo 'log_errors_max_len = 1024'; echo 'ignore_repeated_errors = On'; echo 'ignore_repeated_source = Off'; echo 'html_errors = Off'; } > /usr/local/etc/php/conf.d/error-logging.ini # buildkit
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; version='6.7-RC1'; sha1='913b63aa12c2a395f3f9f994c20fc96ed2354ffb'; curl -o wordpress.tar.gz -fL "https://wordpress.org/wordpress-$version.tar.gz"; echo "$sha1 *wordpress.tar.gz" | sha1sum -c -; tar -xzf wordpress.tar.gz -C /usr/src/; rm wordpress.tar.gz; [ ! -e /usr/src/wordpress/.htaccess ]; { echo '# BEGIN WordPress'; echo ''; echo 'RewriteEngine On'; echo 'RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]'; echo 'RewriteBase /'; echo 'RewriteRule ^index\.php$ - [L]'; echo 'RewriteCond %{REQUEST_FILENAME} !-f'; echo 'RewriteCond %{REQUEST_FILENAME} !-d'; echo 'RewriteRule . /index.php [L]'; echo ''; echo '# END WordPress'; } > /usr/src/wordpress/.htaccess; chown -R www-data:www-data /usr/src/wordpress; mkdir wp-content; for dir in /usr/src/wordpress/wp-content/*/ cache; do dir="$(basename "${dir%/}")"; mkdir "wp-content/$dir"; done; chown -R www-data:www-data wp-content; chmod -R 1777 wp-content # buildkit
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)VOLUME [/var/www/html]
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)COPY --chown=www-data:www-data wp-config-docker.php /usr/src/wordpress/ # buildkit
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh /usr/local/bin/ # buildkit
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)CMD ["php-fpm"]
2024-10-22 19:03:11 UTC
97.7 MB
39B641343D8C104B2B146DC3F9C39DC0B9698544 E60913E4DF209907D8E30D96659A97C9CF2A795A 1198C0117593497A5EC5C199286AF1F9897469DC
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PHPIZE_DEPSautoconf dpkg-dev dpkg file g++ gcc libc-dev make pkgconf re2c
PHP_ASC_URLhttps://www.php.net/distributions/php-8.2.25.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_SHA256330b54876ea1d05ade12ee9726167332058bccd58dffa1d4e12117f6b4f616b9
PHP_URLhttps://www.php.net/distributions/php-8.2.25.tar.xz
PHP_VERSION8.2.25
[#000] sha256:8c4a05189a5fd2cf629c25ab8d0831be7156d74b336f129a412933ee78af018c - 3.29% (3.22 MB)
[#001] sha256:14391b845efe8f32408c641795f24e3b175713b8e7e5fee53145db363ba666da - 5.25% (5.13 MB)
[#002] sha256:48bd895c60b79aa63ccd3bb5c8881ca76d2d0caf2b25c46c0711b34685be1c8d - 0.0% (945 Bytes)
[#003] sha256:8c40e42554f2842dd08828ceee5281acd84fad864cfff2639b39d4f6c134a146 - 0.0% (220 Bytes)
[#004] sha256:5e3da01a311cc6223e6c9f6b3e6f92ddf83a86a61ac52153b3d531c37d3ae0a7 - 11.86% (11.6 MB)
[#005] sha256:de03b526f999be1ad509003bc1d2ad712f70e044e3272c552d149dae6dd73a90 - 0.0% (491 Bytes)
[#006] sha256:43965508bbc3b58a28058e0e90c71737074c5855c1b2f27a50d24d970fa2c6fc - 11.94% (11.7 MB)
[#007] sha256:a57913cf5a4e25c37f9bc53d08da9120b19a9bac878243b1beb363c1ae4268c8 - 0.0% (2.39 KB)
[#008] sha256:33e453dfbaf3e0566f4b0ec8ed557c6caf22f47357d8a512466f9f74a2c34ad0 - 0.02% (19 KB)
[#009] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)
[#010] sha256:19c28e1b91430795283633797d164cae11b781585d5a9e1564d40541621aa23f - 0.01% (8.97 KB)
[#011] sha256:730453ba6382c765aa69cf1be76e683c8087f32fa4e149bdc1e77c158e93f3c7 - 27.16% (26.5 MB)
[#012] sha256:1ef171078b1c3db4b5eeab4c582f190c845c06801e4b3effafbb4958e705593c - 5.91% (5.77 MB)
[#013] sha256:965c48ec9c69a227b072902c5553522d46b3f413da1e8efdbd6a85ee121daa28 - 0.06% (59.2 KB)
[#014] sha256:61728b377213edf5ba8d98ca39037e362f177b2f988e075916c7746affad79fe - 0.0% (394 Bytes)
[#015] sha256:c2b76e77bfc58061b11fbcb5e65f01d8f1873f4822fd5246abceee7ffadc68f5 - 34.5% (33.7 MB)
[#016] sha256:6d129cbd77148ec616a40fda01e24e1149ed1651db9d09ed3513690f303f4563 - 0.0% (2.38 KB)
[#017] sha256:e72710ecf7ba3322023a248a7bf27d17ecef97fbc3a621ca5506e876ff251af0 - 0.0% (1.69 KB)
/bin/sh -c #(nop) ADD file:1f189f0db01ff094ebe1569a5caf278db6965725f4182176ff85dafa711ad524 in /
2024-09-06 22:26:04 UTC/bin/sh -c #(nop) CMD ["/bin/sh"]
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)ENV PHPIZE_DEPS=autoconf dpkg-dev dpkg file g++ gcc libc-dev make pkgconf re2c
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c apk add --no-cache ca-certificates curl openssl tar xz # buildkit
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; adduser -u 82 -D -S -G www-data www-data # buildkit
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)ENV PHP_INI_DIR=/usr/local/etc/php
2024-10-22 19:03:11 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-10-22 19:03:11 UTC (buildkit.dockerfile.v0)ENV PHP_CFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)ENV PHP_CPPFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)ENV PHP_LDFLAGS=-Wl,-O1 -pie
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)ENV GPG_KEYS=39B641343D8C104B2B146DC3F9C39DC0B9698544 E60913E4DF209907D8E30D96659A97C9CF2A795A 1198C0117593497A5EC5C199286AF1F9897469DC
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)ENV PHP_VERSION=8.2.25
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)ENV PHP_URL=https://www.php.net/distributions/php-8.2.25.tar.xz PHP_ASC_URL=https://www.php.net/distributions/php-8.2.25.tar.xz.asc
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)ENV PHP_SHA256=330b54876ea1d05ade12ee9726167332058bccd58dffa1d4e12117f6b4f616b9
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apk add --no-cache --virtual .fetch-deps gnupg; 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; apk del --no-network .fetch-deps # buildkit
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)COPY docker-php-source /usr/local/bin/ # buildkit
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apk add --no-cache --virtual .build-deps $PHPIZE_DEPS argon2-dev coreutils curl-dev gnu-libiconv-dev libsodium-dev libxml2-dev linux-headers oniguruma-dev openssl-dev readline-dev sqlite-dev ; rm -vf /usr/include/iconv.h; 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)"; ./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=/usr --with-openssl --with-readline --with-zlib --disable-phpdbg --with-pear $(test "$gnuArch" = 'riscv64-linux-musl' && echo '--without-pcre-jit') --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; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' )"; apk add --no-cache $runDeps; apk del --no-network .build-deps; pecl update-channels; rm -rf /tmp/pear ~/.pearrc; php --version # buildkit
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ # buildkit
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c docker-php-ext-enable sodium # buildkit
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-php-entrypoint"]
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)WORKDIR /var/www/html
2024-10-22 19:03:11 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-10-22 19:03:11 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGQUIT
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)EXPOSE map[9000/tcp:{}]
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)CMD ["php-fpm"]
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apk add --no-cache bash ghostscript imagemagick ; # buildkit
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -ex; apk add --no-cache --virtual .build-deps $PHPIZE_DEPS freetype-dev icu-dev imagemagick-dev libheif-dev libavif-dev libjpeg-turbo-dev libpng-dev libwebp-dev libzip-dev ; docker-php-ext-configure gd --with-avif --with-freetype --with-jpeg --with-webp ; docker-php-ext-install -j "$(nproc)" bcmath exif gd intl mysqli zip ; curl -fL -o imagick.tgz 'https://pecl.php.net/get/imagick-3.7.0.tgz'; echo '5a364354109029d224bcbb2e82e15b248be9b641227f45e63425c06531792d3e *imagick.tgz' | sha256sum -c -; tar --extract --directory /tmp --file imagick.tgz imagick-3.7.0; grep '^//#endif$' /tmp/imagick-3.7.0/Imagick.stub.php; test "$(grep -c '^//#endif$' /tmp/imagick-3.7.0/Imagick.stub.php)" = '1'; sed -i -e 's!^//#endif$!#endif!' /tmp/imagick-3.7.0/Imagick.stub.php; grep '^//#endif$' /tmp/imagick-3.7.0/Imagick.stub.php && exit 1 || :; docker-php-ext-install /tmp/imagick-3.7.0; rm -rf imagick.tgz /tmp/imagick-3.7.0; out="$(php -r 'exit(0);')"; [ -z "$out" ]; err="$(php -r 'exit(0);' 3>&1 1>&2 2>&3)"; [ -z "$err" ]; extDir="$(php -r 'echo ini_get("extension_dir");')"; [ -d "$extDir" ]; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive "$extDir" | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' )"; apk add --no-network --virtual .wordpress-phpexts-rundeps $runDeps; apk del --no-network .build-deps; ! { ldd "$extDir"/*.so | grep 'not found'; }; err="$(php --version 3>&1 1>&2 2>&3)"; [ -z "$err" ] # buildkit
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; docker-php-ext-enable opcache; { echo 'opcache.memory_consumption=128'; echo 'opcache.interned_strings_buffer=8'; echo 'opcache.max_accelerated_files=4000'; echo 'opcache.revalidate_freq=2'; } > /usr/local/etc/php/conf.d/opcache-recommended.ini # buildkit
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c { echo 'error_reporting = E_ERROR | E_WARNING | E_PARSE | E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_COMPILE_WARNING | E_RECOVERABLE_ERROR'; echo 'display_errors = Off'; echo 'display_startup_errors = Off'; echo 'log_errors = On'; echo 'error_log = /dev/stderr'; echo 'log_errors_max_len = 1024'; echo 'ignore_repeated_errors = On'; echo 'ignore_repeated_source = Off'; echo 'html_errors = Off'; } > /usr/local/etc/php/conf.d/error-logging.ini # buildkit
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; version='6.7-RC1'; sha1='913b63aa12c2a395f3f9f994c20fc96ed2354ffb'; curl -o wordpress.tar.gz -fL "https://wordpress.org/wordpress-$version.tar.gz"; echo "$sha1 *wordpress.tar.gz" | sha1sum -c -; tar -xzf wordpress.tar.gz -C /usr/src/; rm wordpress.tar.gz; [ ! -e /usr/src/wordpress/.htaccess ]; { echo '# BEGIN WordPress'; echo ''; echo 'RewriteEngine On'; echo 'RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]'; echo 'RewriteBase /'; echo 'RewriteRule ^index\.php$ - [L]'; echo 'RewriteCond %{REQUEST_FILENAME} !-f'; echo 'RewriteCond %{REQUEST_FILENAME} !-d'; echo 'RewriteRule . /index.php [L]'; echo ''; echo '# END WordPress'; } > /usr/src/wordpress/.htaccess; chown -R www-data:www-data /usr/src/wordpress; mkdir wp-content; for dir in /usr/src/wordpress/wp-content/*/ cache; do dir="$(basename "${dir%/}")"; mkdir "wp-content/$dir"; done; chown -R www-data:www-data wp-content; chmod -R 1777 wp-content # buildkit
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)VOLUME [/var/www/html]
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)COPY --chown=www-data:www-data wp-config-docker.php /usr/src/wordpress/ # buildkit
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh /usr/local/bin/ # buildkit
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)CMD ["php-fpm"]
2024-10-22 19:03:11 UTC
101 MB
39B641343D8C104B2B146DC3F9C39DC0B9698544 E60913E4DF209907D8E30D96659A97C9CF2A795A 1198C0117593497A5EC5C199286AF1F9897469DC
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PHPIZE_DEPSautoconf dpkg-dev dpkg file g++ gcc libc-dev make pkgconf re2c
PHP_ASC_URLhttps://www.php.net/distributions/php-8.2.25.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_SHA256330b54876ea1d05ade12ee9726167332058bccd58dffa1d4e12117f6b4f616b9
PHP_URLhttps://www.php.net/distributions/php-8.2.25.tar.xz
PHP_VERSION8.2.25
[#000] sha256:df110db6acd600b9ee5ebd7b510779652f96424d3f80321a4e0dcb8a09aa0526 - 3.27% (3.3 MB)
[#001] sha256:158e1a1fd0b2858e6d2273d854776681414260488a4eacc85eb382e65b038ecd - 5.23% (5.27 MB)
[#002] sha256:5d12dd8b0c5e061a98a59e1b4355e05fcd6718a2721a5b5d8646d6c3142b0aea - 0.0% (944 Bytes)
[#003] sha256:c2eb97483a4f916d04074d8958a40ef8a540bb57479c459a219658abd26db869 - 0.0% (221 Bytes)
[#004] sha256:e2f60f9ddbda9307c748838effadbccd6e13dba3f6c0b4c675222ef4a5ff7a70 - 11.48% (11.6 MB)
[#005] sha256:2f217c109a1da9fdc75f229b5671c27bbeb531d7c20b294858e2c99ac6ccc610 - 0.0% (491 Bytes)
[#006] sha256:5dbc45f7d99c5bf20c1a5b82913d6606ce3d0a0d421e4af7e0918875a5cf7b17 - 12.13% (12.2 MB)
[#007] sha256:6e0b2fb4b33faa1225cdfc603bb2e7dc164fb6f20d6ecb0ba6b9e4a66cae270e - 0.0% (2.39 KB)
[#008] sha256:c7e8e93d13b7e12a454a6e1e366f383de3d11205dad40183102859ff635ade99 - 0.02% (19 KB)
[#009] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)
[#010] sha256:e6141de54289713f280396aa61a8f6419ecabda7010e87350ea536561280a2a8 - 0.01% (8.97 KB)
[#011] sha256:e68e07c26c9760eb8f6e25fd17ac2486f05f85fd74b9cb9ce534c0b4a56b5a85 - 27.12% (27.4 MB)
[#012] sha256:4ea43becabaa0ed3206fcea79c522f80c06555fa577a31f2aa314339aef50ec3 - 7.28% (7.35 MB)
[#013] sha256:7daf267d2bcf1e9f9f0fa24b776f7cb6e180f1fff837c41fc29f74dae445047c - 0.06% (59.2 KB)
[#014] sha256:a1410956ecb0e952cded7d5efcceb70c90dd472c260645e5d416efc9cffba98f - 0.0% (386 Bytes)
[#015] sha256:10407aef9f6f9c6fc0a5d876e084a7dff3b6f4dd60c3ac81bc80b10b930c4f3c - 33.4% (33.7 MB)
[#016] sha256:4a8babb4267bb7647104b23c00c2efc23a402024f55dc2e7c789060342ac26e1 - 0.0% (2.38 KB)
[#017] sha256:a7ba92166669543ee58827426446fdf41fb87f44a75a103e35b7e9144ca6d36a - 0.0% (1.68 KB)
/bin/sh -c #(nop) ADD file:ba2637314e600db5a647501cf1ab287c5f51de1627c13bc1d82aa48925a3dd78 in /
2024-09-06 22:48:17 UTC/bin/sh -c #(nop) CMD ["/bin/sh"]
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)ENV PHPIZE_DEPS=autoconf dpkg-dev dpkg file g++ gcc libc-dev make pkgconf re2c
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c apk add --no-cache ca-certificates curl openssl tar xz # buildkit
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; adduser -u 82 -D -S -G www-data www-data # buildkit
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)ENV PHP_INI_DIR=/usr/local/etc/php
2024-10-22 19:03:11 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-10-22 19:03:11 UTC (buildkit.dockerfile.v0)ENV PHP_CFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)ENV PHP_CPPFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)ENV PHP_LDFLAGS=-Wl,-O1 -pie
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)ENV GPG_KEYS=39B641343D8C104B2B146DC3F9C39DC0B9698544 E60913E4DF209907D8E30D96659A97C9CF2A795A 1198C0117593497A5EC5C199286AF1F9897469DC
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)ENV PHP_VERSION=8.2.25
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)ENV PHP_URL=https://www.php.net/distributions/php-8.2.25.tar.xz PHP_ASC_URL=https://www.php.net/distributions/php-8.2.25.tar.xz.asc
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)ENV PHP_SHA256=330b54876ea1d05ade12ee9726167332058bccd58dffa1d4e12117f6b4f616b9
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apk add --no-cache --virtual .fetch-deps gnupg; 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; apk del --no-network .fetch-deps # buildkit
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)COPY docker-php-source /usr/local/bin/ # buildkit
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apk add --no-cache --virtual .build-deps $PHPIZE_DEPS argon2-dev coreutils curl-dev gnu-libiconv-dev libsodium-dev libxml2-dev linux-headers oniguruma-dev openssl-dev readline-dev sqlite-dev ; rm -vf /usr/include/iconv.h; 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)"; ./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=/usr --with-openssl --with-readline --with-zlib --disable-phpdbg --with-pear $(test "$gnuArch" = 'riscv64-linux-musl' && echo '--without-pcre-jit') --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; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' )"; apk add --no-cache $runDeps; apk del --no-network .build-deps; pecl update-channels; rm -rf /tmp/pear ~/.pearrc; php --version # buildkit
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ # buildkit
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c docker-php-ext-enable sodium # buildkit
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-php-entrypoint"]
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)WORKDIR /var/www/html
2024-10-22 19:03:11 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-10-22 19:03:11 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGQUIT
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)EXPOSE map[9000/tcp:{}]
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)CMD ["php-fpm"]
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apk add --no-cache bash ghostscript imagemagick ; # buildkit
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -ex; apk add --no-cache --virtual .build-deps $PHPIZE_DEPS freetype-dev icu-dev imagemagick-dev libheif-dev libavif-dev libjpeg-turbo-dev libpng-dev libwebp-dev libzip-dev ; docker-php-ext-configure gd --with-avif --with-freetype --with-jpeg --with-webp ; docker-php-ext-install -j "$(nproc)" bcmath exif gd intl mysqli zip ; curl -fL -o imagick.tgz 'https://pecl.php.net/get/imagick-3.7.0.tgz'; echo '5a364354109029d224bcbb2e82e15b248be9b641227f45e63425c06531792d3e *imagick.tgz' | sha256sum -c -; tar --extract --directory /tmp --file imagick.tgz imagick-3.7.0; grep '^//#endif$' /tmp/imagick-3.7.0/Imagick.stub.php; test "$(grep -c '^//#endif$' /tmp/imagick-3.7.0/Imagick.stub.php)" = '1'; sed -i -e 's!^//#endif$!#endif!' /tmp/imagick-3.7.0/Imagick.stub.php; grep '^//#endif$' /tmp/imagick-3.7.0/Imagick.stub.php && exit 1 || :; docker-php-ext-install /tmp/imagick-3.7.0; rm -rf imagick.tgz /tmp/imagick-3.7.0; out="$(php -r 'exit(0);')"; [ -z "$out" ]; err="$(php -r 'exit(0);' 3>&1 1>&2 2>&3)"; [ -z "$err" ]; extDir="$(php -r 'echo ini_get("extension_dir");')"; [ -d "$extDir" ]; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive "$extDir" | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' )"; apk add --no-network --virtual .wordpress-phpexts-rundeps $runDeps; apk del --no-network .build-deps; ! { ldd "$extDir"/*.so | grep 'not found'; }; err="$(php --version 3>&1 1>&2 2>&3)"; [ -z "$err" ] # buildkit
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; docker-php-ext-enable opcache; { echo 'opcache.memory_consumption=128'; echo 'opcache.interned_strings_buffer=8'; echo 'opcache.max_accelerated_files=4000'; echo 'opcache.revalidate_freq=2'; } > /usr/local/etc/php/conf.d/opcache-recommended.ini # buildkit
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c { echo 'error_reporting = E_ERROR | E_WARNING | E_PARSE | E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_COMPILE_WARNING | E_RECOVERABLE_ERROR'; echo 'display_errors = Off'; echo 'display_startup_errors = Off'; echo 'log_errors = On'; echo 'error_log = /dev/stderr'; echo 'log_errors_max_len = 1024'; echo 'ignore_repeated_errors = On'; echo 'ignore_repeated_source = Off'; echo 'html_errors = Off'; } > /usr/local/etc/php/conf.d/error-logging.ini # buildkit
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; version='6.7-RC1'; sha1='913b63aa12c2a395f3f9f994c20fc96ed2354ffb'; curl -o wordpress.tar.gz -fL "https://wordpress.org/wordpress-$version.tar.gz"; echo "$sha1 *wordpress.tar.gz" | sha1sum -c -; tar -xzf wordpress.tar.gz -C /usr/src/; rm wordpress.tar.gz; [ ! -e /usr/src/wordpress/.htaccess ]; { echo '# BEGIN WordPress'; echo ''; echo 'RewriteEngine On'; echo 'RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]'; echo 'RewriteBase /'; echo 'RewriteRule ^index\.php$ - [L]'; echo 'RewriteCond %{REQUEST_FILENAME} !-f'; echo 'RewriteCond %{REQUEST_FILENAME} !-d'; echo 'RewriteRule . /index.php [L]'; echo ''; echo '# END WordPress'; } > /usr/src/wordpress/.htaccess; chown -R www-data:www-data /usr/src/wordpress; mkdir wp-content; for dir in /usr/src/wordpress/wp-content/*/ cache; do dir="$(basename "${dir%/}")"; mkdir "wp-content/$dir"; done; chown -R www-data:www-data wp-content; chmod -R 1777 wp-content # buildkit
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)VOLUME [/var/www/html]
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)COPY --chown=www-data:www-data wp-config-docker.php /usr/src/wordpress/ # buildkit
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)COPY docker-entrypoint.sh /usr/local/bin/ # buildkit
2024-10-22 19:03:11 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-entrypoint.sh"]
2024-10-22 19:03:11 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.