2024-04-18 21:17:33 UTC
172 MB
/etc/apache2
APACHE_ENVVARS/etc/apache2/envvars
GPG_KEYS1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PHPIZE_DEPSautoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c
PHP_ASC_URLhttps://www.php.net/distributions/php-8.3.16.tar.xz.asc
PHP_CFLAGS-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
PHP_CPPFLAGS-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
PHP_INI_DIR/usr/local/etc/php
PHP_LDFLAGS-Wl,-O1 -pie
PHP_SHA25640d3b4e6cac33d3bcefe096d75a28d4fb4e3a9615eb20a4de55ba139fbfacdd5
PHP_URLhttps://www.php.net/distributions/php-8.3.16.tar.xz
PHP_VERSION8.3.16
YOURLS_SHA25662a95ba766d62f3305d75944cbfe12d5a90c08c88fbf2f6e67150d36412b916f
YOURLS_VERSION1.9.2
[#000] sha256:57fff88fb79736a903f46d7ab2546a9d83e4b9cf9032f766ea3c92eb06acbcca - 16.17% (27.8 MB)
[#001] sha256:2d3ea4fb578a39e870271f563f1dcfc8bc4dacd359b320d24d238836b3114701 - 0.0% (226 Bytes)
[#002] sha256:177b9521d3b22bd3556774e805a4d90dc813e5a34f28cc385728b4fd120f78ca - 56.25% (96.8 MB)
[#003] sha256:c6b7c9fad7e71f838462b2d7e6eab65ccc11549d8a50453839d0c95386f83540 - 0.0% (226 Bytes)
[#004] sha256:3f0ba40f0b020c13c7c5353e6668bdb421f269dd002133951513771a52c39167 - 11.44% (19.7 MB)
[#005] sha256:e405040ddc3757665fd5b1102ae6a651b659b8c4750a33bf0dd7765554a41bef - 0.0% (430 Bytes)
[#006] sha256:26013430256f12a0e13ae0248a61112bd7ecece2e8ea014c21341633adf82d50 - 0.0% (484 Bytes)
[#007] sha256:b32ac8f9efc082296c3f0beffb09079297c60a11ec61646543234c8ea621e1ff - 7.02% (12.1 MB)
[#008] sha256:591cddc05dd913751b27f5e366a2a684d9cc1ffac8d806ab8a4d1f0425d5aad2 - 0.0% (489 Bytes)
[#009] sha256:5adbd9dbdc230a179180302afe16e90f9ba3658a332f40d134f5cc41d7e7bff1 - 6.58% (11.3 MB)
[#010] sha256:2cfed2e8cdde37eb5b5bdf4eff80b8d6830b9f9cbe3f515c057e3efc0cf281a4 - 0.0% (2.4 KB)
[#011] sha256:2f76cb1799ea08ade7e098837fb6ef1b0a05e37e9b16e4aab8f14ef9d1300735 - 0.0% (246 Bytes)
[#012] sha256:6d53402ebbfaddd4c4e4754781a6da98fb96cff4da7dc177b95e26a3aa4a6c2b - 0.0% (892 Bytes)
[#013] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)
[#014] sha256:a457542a4bdb7c66a6caaa6b34ce33fa43959baa30545dad9af5e80da3d39f25 - 0.28% (495 KB)
[#015] sha256:009e5485bad21fdf2b31683d6a30e4760d9d02a74acabda5139db6fbb6ee1115 - 0.0% (324 Bytes)
[#016] sha256:a569b998c9abfa1de7920d65ae92c217e2ce3d6a0c60a4e5ffb3bc86cf9d6105 - 0.0% (342 Bytes)
[#017] sha256:907bb2d1d19d721589518b8f00c4e50b48cf594e69d301195e675a0332b62581 - 2.26% (3.88 MB)
[#018] sha256:8f23ceca07a3d42f793a10cecb9a3aefa48aae2fb9970a09165e6822c56a3dc7 - 0.0% (2 KB)
[#019] sha256:e903cc1659d7abfea51e173d6683fb0b81cc20f8710425f3854c5bdd07adafe7 - 0.0% (1.66 KB)
[#020] sha256:0230c6965e02fd88871aea9fd7fc25e78a3344f282a3a5d8c7cb75d14941b724 - 0.0% (329 Bytes)
# debian.sh --arch 'i386' out/ 'bookworm' '@1736726400'
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; { echo 'Package: php*'; echo 'Pin: release *'; echo 'Pin-Priority: -1'; } > /etc/apt/preferences.d/no-debian-php # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHPIZE_DEPS=autoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends $PHPIZE_DEPS ca-certificates curl xz-utils ; rm -rf /var/lib/apt/lists/* # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHP_INI_DIR=/usr/local/etc/php
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; mkdir -p "$PHP_INI_DIR/conf.d"; [ ! -d /var/www/html ]; mkdir -p /var/www/html; chown www-data:www-data /var/www/html; chmod 1777 /var/www/html # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV APACHE_CONFDIR=/etc/apache2
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV APACHE_ENVVARS=/etc/apache2/envvars
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends apache2; rm -rf /var/lib/apt/lists/*; sed -ri 's/^export ([^=]+)=(.*)$/: ${\1:=\2}\nexport \1/' "$APACHE_ENVVARS"; . "$APACHE_ENVVARS"; for dir in "$APACHE_LOCK_DIR" "$APACHE_RUN_DIR" "$APACHE_LOG_DIR" "$APACHE_RUN_DIR/socks" ; do rm -rvf "$dir"; mkdir -p "$dir"; chown "$APACHE_RUN_USER:$APACHE_RUN_GROUP" "$dir"; chmod 1777 "$dir"; done; rm -rvf /var/www/html/*; ln -sfT /dev/stderr "$APACHE_LOG_DIR/error.log"; ln -sfT /dev/stdout "$APACHE_LOG_DIR/access.log"; ln -sfT /dev/stdout "$APACHE_LOG_DIR/other_vhosts_access.log"; chown -R --no-dereference "$APACHE_RUN_USER:$APACHE_RUN_GROUP" "$APACHE_LOG_DIR" # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c a2dismod mpm_event && a2enmod mpm_prefork # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c { echo '<FilesMatch \.php$>'; echo '\tSetHandler application/x-httpd-php'; echo '</FilesMatch>'; echo; echo 'DirectoryIndex disabled'; echo 'DirectoryIndex index.php index.html'; echo; echo '<Directory /var/www/>'; echo '\tOptions -Indexes'; echo '\tAllowOverride All'; echo '</Directory>'; } | tee "$APACHE_CONFDIR/conf-available/docker-php.conf" && a2enconf docker-php # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHP_CFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHP_CPPFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHP_LDFLAGS=-Wl,-O1 -pie
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV GPG_KEYS=1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHP_VERSION=8.3.16
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHP_URL=https://www.php.net/distributions/php-8.3.16.tar.xz PHP_ASC_URL=https://www.php.net/distributions/php-8.3.16.tar.xz.asc
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHP_SHA256=40d3b4e6cac33d3bcefe096d75a28d4fb4e3a9615eb20a4de55ba139fbfacdd5
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends gnupg; rm -rf /var/lib/apt/lists/*; mkdir -p /usr/src; cd /usr/src; curl -fsSL -o php.tar.xz "$PHP_URL"; if [ -n "$PHP_SHA256" ]; then echo "$PHP_SHA256 *php.tar.xz" | sha256sum -c -; fi; if [ -n "$PHP_ASC_URL" ]; then curl -fsSL -o php.tar.xz.asc "$PHP_ASC_URL"; export GNUPGHOME="$(mktemp -d)"; for key in $GPG_KEYS; do gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key"; done; gpg --batch --verify php.tar.xz.asc php.tar.xz; gpgconf --kill all; rm -rf "$GNUPGHOME"; fi; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark > /dev/null; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)COPY docker-php-source /usr/local/bin/ # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends apache2-dev libargon2-dev libcurl4-openssl-dev libonig-dev libreadline-dev libsodium-dev libsqlite3-dev libssl-dev libxml2-dev zlib1g-dev ; export CFLAGS="$PHP_CFLAGS" CPPFLAGS="$PHP_CPPFLAGS" LDFLAGS="$PHP_LDFLAGS" PHP_BUILD_PROVIDER='https://github.com/docker-library/php' PHP_UNAME='Linux - Docker' ; docker-php-source extract; cd /usr/src/php; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; if [ ! -d /usr/include/curl ]; then ln -sT "/usr/include/$debMultiarch/curl" /usr/local/include/curl; fi; ./configure --build="$gnuArch" --with-config-file-path="$PHP_INI_DIR" --with-config-file-scan-dir="$PHP_INI_DIR/conf.d" --enable-option-checking=fatal --with-mhash --with-pic --enable-mbstring --enable-mysqlnd --with-password-argon2 --with-sodium=shared --with-pdo-sqlite=/usr --with-sqlite3=/usr --with-curl --with-iconv --with-openssl --with-readline --with-zlib --disable-phpdbg --with-pear --with-libdir="lib/$debMultiarch" --disable-cgi --with-apxs2 ; make -j "$(nproc)"; find -type f -name '*.a' -delete; make install; find /usr/local -type f -perm '/0111' -exec sh -euxc ' strip --strip-all "$@" || : ' -- '{}' + ; make clean; cp -v php.ini-* "$PHP_INI_DIR/"; cd /; docker-php-source delete; apt-mark auto '.*' > /dev/null; [ -z "$savedAptMark" ] || apt-mark manual $savedAptMark; find /usr/local -type f -executable -exec ldd '{}' ';' | awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); printf "*%s\n", so }' | sort -u | xargs -r dpkg-query --search | cut -d: -f1 | sort -u | xargs -r apt-mark manual ; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; rm -rf /var/lib/apt/lists/*; pecl update-channels; rm -rf /tmp/pear ~/.pearrc; php --version # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c docker-php-ext-enable sodium # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-php-entrypoint"]
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGWINCH
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)COPY apache2-foreground /usr/local/bin/ # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)WORKDIR /var/www/html
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)EXPOSE map[80/tcp:{}]
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)CMD ["apache2-foreground"]
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; docker-php-ext-install -j "$(nproc)" bcmath opcache pdo_mysql mysqli # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c { echo 'opcache.memory_consumption=128'; echo 'opcache.interned_strings_buffer=8'; echo 'opcache.max_accelerated_files=4000'; echo 'opcache.revalidate_freq=2'; echo 'opcache.fast_shutdown=1'; } > /usr/local/etc/php/conf.d/opcache-recommended.ini # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c a2enmod rewrite expires # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ARG YOURLS_VERSION=1.9.2
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ARG YOURLS_SHA256=62a95ba766d62f3305d75944cbfe12d5a90c08c88fbf2f6e67150d36412b916f
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV YOURLS_VERSION=1.9.2
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV YOURLS_SHA256=62a95ba766d62f3305d75944cbfe12d5a90c08c88fbf2f6e67150d36412b916f
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN |2 YOURLS_VERSION=1.9.2 YOURLS_SHA256=62a95ba766d62f3305d75944cbfe12d5a90c08c88fbf2f6e67150d36412b916f /bin/sh -c set -eux; curl -o yourls.tar.gz -fsSL "https://github.com/YOURLS/YOURLS/archive/${YOURLS_VERSION}.tar.gz"; echo "$YOURLS_SHA256 *yourls.tar.gz" | sha256sum -c -; tar -xf yourls.tar.gz -C /usr/src/; mv "/usr/src/YOURLS-${YOURLS_VERSION}" /usr/src/yourls; rm yourls.tar.gz; chown -R www-data:www-data /usr/src/yourls # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)COPY --chown=www-data:www-data config-container.php /usr/src/yourls/user/ # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)COPY container-entrypoint.sh /usr/local/bin/ # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)COPY .htaccess /usr/src/yourls/ # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["container-entrypoint.sh"]
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)CMD ["apache2-foreground"]
2024-04-18 21:17:33 UTC
173 MB
/etc/apache2
APACHE_ENVVARS/etc/apache2/envvars
GPG_KEYS1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PHPIZE_DEPSautoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c
PHP_ASC_URLhttps://www.php.net/distributions/php-8.3.16.tar.xz.asc
PHP_CFLAGS-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
PHP_CPPFLAGS-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
PHP_INI_DIR/usr/local/etc/php
PHP_LDFLAGS-Wl,-O1 -pie
PHP_SHA25640d3b4e6cac33d3bcefe096d75a28d4fb4e3a9615eb20a4de55ba139fbfacdd5
PHP_URLhttps://www.php.net/distributions/php-8.3.16.tar.xz
PHP_VERSION8.3.16
YOURLS_SHA25662a95ba766d62f3305d75944cbfe12d5a90c08c88fbf2f6e67150d36412b916f
YOURLS_VERSION1.9.2
[#000] sha256:af302e5c37e9dc1dbe2eadc8f5059d82a914066b541b0d1a6daa91d0cc55057d - 15.53% (26.9 MB)
[#001] sha256:7e4623a4d66dc7967ab24ebbf1e0870e6e0ee06c9beb3ab16e5bf6d96c43bb9a - 0.0% (225 Bytes)
[#002] sha256:032682927d6b80d0b80d7f776805d3948052ec856e35efd0f9ec331e8d5a0217 - 57.45% (99.5 MB)
[#003] sha256:234e688c82e929d2e19edb0b49aeab4718e3c62170643cbad989cc70837bab5d - 0.0% (223 Bytes)
[#004] sha256:b751fe9eaa7b5466d96de56252a17fc8af06434d529845b0b277e27a36c8c3c3 - 11.08% (19.2 MB)
[#005] sha256:cd85549108886c2687ac6ceb08aa01230c309666120b80499e0e67b32c0e0eab - 0.0% (430 Bytes)
[#006] sha256:b8e5f1a8f3a518d1d99964600cb266fe4a01c10555b6f4b44d7d7c51309265b3 - 0.0% (484 Bytes)
[#007] sha256:dbcd36b6ed1eac7169f1ae27070808137c18e7cc8b6991d66a070662144bf74e - 6.98% (12.1 MB)
[#008] sha256:7aee00b7a9d50a91794f83bd27dc807a856156dbfb0095220ed330e385d9f0a4 - 0.0% (489 Bytes)
[#009] sha256:fa25c3bbab23243c05a91631dd173c920f2566842c2e4675aec59d28b81e087c - 6.42% (11.1 MB)
[#010] sha256:7ecc93a308a04f2d7189edad39e2d3656ed008b5d17ecb70f8dcbb104066d09e - 0.0% (2.4 KB)
[#011] sha256:3dcb73f5243da58cab9f2315fd2204b20aa3015eeb4506e80cb01b21c78c5337 - 0.0% (244 Bytes)
[#012] sha256:b8cdbba6daa1001645c3cfd6028e85793809c94a6201800712ec9e1948b2eab0 - 0.0% (891 Bytes)
[#013] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)
[#014] sha256:9316e7b228487eed49ea6ec842ca2f16c6345b343f83cb91a342bcd0b0ac292b - 0.29% (514 KB)
[#015] sha256:e0b099aad96f0bb17bd98f25fefdbb7a0d10277a82afee3a2ed938e01cb9e37e - 0.0% (324 Bytes)
[#016] sha256:a72b2d51e5b088c601a930ee2d5a895923cbcb23719da38f2c81fb1a529a3aae - 0.0% (342 Bytes)
[#017] sha256:158dbce7ccc51c3323dd3065d534283474650e7f4cb79dfd1e1c84b069e2c271 - 2.24% (3.88 MB)
[#018] sha256:9c75c7f9e2d363b3fe3083c7acd3a55b8fc840b1a09c43bea236d977f3df37c9 - 0.0% (2 KB)
[#019] sha256:20fb9a728df8e6bc61f80bfebfcacaea580b415abb2b54700750b0bd3bec512c - 0.0% (1.65 KB)
[#020] sha256:63110644148288bae1cec7b3b52527015911b974922c9e5cdb3076d03ec034d1 - 0.0% (331 Bytes)
# debian.sh --arch 'amd64' out/ 'bookworm' '@1736726400'
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; { echo 'Package: php*'; echo 'Pin: release *'; echo 'Pin-Priority: -1'; } > /etc/apt/preferences.d/no-debian-php # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHPIZE_DEPS=autoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends $PHPIZE_DEPS ca-certificates curl xz-utils ; rm -rf /var/lib/apt/lists/* # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHP_INI_DIR=/usr/local/etc/php
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; mkdir -p "$PHP_INI_DIR/conf.d"; [ ! -d /var/www/html ]; mkdir -p /var/www/html; chown www-data:www-data /var/www/html; chmod 1777 /var/www/html # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV APACHE_CONFDIR=/etc/apache2
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV APACHE_ENVVARS=/etc/apache2/envvars
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends apache2; rm -rf /var/lib/apt/lists/*; sed -ri 's/^export ([^=]+)=(.*)$/: ${\1:=\2}\nexport \1/' "$APACHE_ENVVARS"; . "$APACHE_ENVVARS"; for dir in "$APACHE_LOCK_DIR" "$APACHE_RUN_DIR" "$APACHE_LOG_DIR" "$APACHE_RUN_DIR/socks" ; do rm -rvf "$dir"; mkdir -p "$dir"; chown "$APACHE_RUN_USER:$APACHE_RUN_GROUP" "$dir"; chmod 1777 "$dir"; done; rm -rvf /var/www/html/*; ln -sfT /dev/stderr "$APACHE_LOG_DIR/error.log"; ln -sfT /dev/stdout "$APACHE_LOG_DIR/access.log"; ln -sfT /dev/stdout "$APACHE_LOG_DIR/other_vhosts_access.log"; chown -R --no-dereference "$APACHE_RUN_USER:$APACHE_RUN_GROUP" "$APACHE_LOG_DIR" # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c a2dismod mpm_event && a2enmod mpm_prefork # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c { echo '<FilesMatch \.php$>'; echo '\tSetHandler application/x-httpd-php'; echo '</FilesMatch>'; echo; echo 'DirectoryIndex disabled'; echo 'DirectoryIndex index.php index.html'; echo; echo '<Directory /var/www/>'; echo '\tOptions -Indexes'; echo '\tAllowOverride All'; echo '</Directory>'; } | tee "$APACHE_CONFDIR/conf-available/docker-php.conf" && a2enconf docker-php # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHP_CFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHP_CPPFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHP_LDFLAGS=-Wl,-O1 -pie
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV GPG_KEYS=1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHP_VERSION=8.3.16
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHP_URL=https://www.php.net/distributions/php-8.3.16.tar.xz PHP_ASC_URL=https://www.php.net/distributions/php-8.3.16.tar.xz.asc
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHP_SHA256=40d3b4e6cac33d3bcefe096d75a28d4fb4e3a9615eb20a4de55ba139fbfacdd5
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends gnupg; rm -rf /var/lib/apt/lists/*; mkdir -p /usr/src; cd /usr/src; curl -fsSL -o php.tar.xz "$PHP_URL"; if [ -n "$PHP_SHA256" ]; then echo "$PHP_SHA256 *php.tar.xz" | sha256sum -c -; fi; if [ -n "$PHP_ASC_URL" ]; then curl -fsSL -o php.tar.xz.asc "$PHP_ASC_URL"; export GNUPGHOME="$(mktemp -d)"; for key in $GPG_KEYS; do gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key"; done; gpg --batch --verify php.tar.xz.asc php.tar.xz; gpgconf --kill all; rm -rf "$GNUPGHOME"; fi; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark > /dev/null; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)COPY docker-php-source /usr/local/bin/ # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends apache2-dev libargon2-dev libcurl4-openssl-dev libonig-dev libreadline-dev libsodium-dev libsqlite3-dev libssl-dev libxml2-dev zlib1g-dev ; export CFLAGS="$PHP_CFLAGS" CPPFLAGS="$PHP_CPPFLAGS" LDFLAGS="$PHP_LDFLAGS" PHP_BUILD_PROVIDER='https://github.com/docker-library/php' PHP_UNAME='Linux - Docker' ; docker-php-source extract; cd /usr/src/php; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; if [ ! -d /usr/include/curl ]; then ln -sT "/usr/include/$debMultiarch/curl" /usr/local/include/curl; fi; ./configure --build="$gnuArch" --with-config-file-path="$PHP_INI_DIR" --with-config-file-scan-dir="$PHP_INI_DIR/conf.d" --enable-option-checking=fatal --with-mhash --with-pic --enable-mbstring --enable-mysqlnd --with-password-argon2 --with-sodium=shared --with-pdo-sqlite=/usr --with-sqlite3=/usr --with-curl --with-iconv --with-openssl --with-readline --with-zlib --disable-phpdbg --with-pear --with-libdir="lib/$debMultiarch" --disable-cgi --with-apxs2 ; make -j "$(nproc)"; find -type f -name '*.a' -delete; make install; find /usr/local -type f -perm '/0111' -exec sh -euxc ' strip --strip-all "$@" || : ' -- '{}' + ; make clean; cp -v php.ini-* "$PHP_INI_DIR/"; cd /; docker-php-source delete; apt-mark auto '.*' > /dev/null; [ -z "$savedAptMark" ] || apt-mark manual $savedAptMark; find /usr/local -type f -executable -exec ldd '{}' ';' | awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); printf "*%s\n", so }' | sort -u | xargs -r dpkg-query --search | cut -d: -f1 | sort -u | xargs -r apt-mark manual ; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; rm -rf /var/lib/apt/lists/*; pecl update-channels; rm -rf /tmp/pear ~/.pearrc; php --version # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c docker-php-ext-enable sodium # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-php-entrypoint"]
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGWINCH
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)COPY apache2-foreground /usr/local/bin/ # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)WORKDIR /var/www/html
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)EXPOSE map[80/tcp:{}]
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)CMD ["apache2-foreground"]
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; docker-php-ext-install -j "$(nproc)" bcmath opcache pdo_mysql mysqli # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c { echo 'opcache.memory_consumption=128'; echo 'opcache.interned_strings_buffer=8'; echo 'opcache.max_accelerated_files=4000'; echo 'opcache.revalidate_freq=2'; echo 'opcache.fast_shutdown=1'; } > /usr/local/etc/php/conf.d/opcache-recommended.ini # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c a2enmod rewrite expires # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ARG YOURLS_VERSION=1.9.2
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ARG YOURLS_SHA256=62a95ba766d62f3305d75944cbfe12d5a90c08c88fbf2f6e67150d36412b916f
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV YOURLS_VERSION=1.9.2
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV YOURLS_SHA256=62a95ba766d62f3305d75944cbfe12d5a90c08c88fbf2f6e67150d36412b916f
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN |2 YOURLS_VERSION=1.9.2 YOURLS_SHA256=62a95ba766d62f3305d75944cbfe12d5a90c08c88fbf2f6e67150d36412b916f /bin/sh -c set -eux; curl -o yourls.tar.gz -fsSL "https://github.com/YOURLS/YOURLS/archive/${YOURLS_VERSION}.tar.gz"; echo "$YOURLS_SHA256 *yourls.tar.gz" | sha256sum -c -; tar -xf yourls.tar.gz -C /usr/src/; mv "/usr/src/YOURLS-${YOURLS_VERSION}" /usr/src/yourls; rm yourls.tar.gz; chown -R www-data:www-data /usr/src/yourls # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)COPY --chown=www-data:www-data config-container.php /usr/src/yourls/user/ # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)COPY container-entrypoint.sh /usr/local/bin/ # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)COPY .htaccess /usr/src/yourls/ # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["container-entrypoint.sh"]
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)CMD ["apache2-foreground"]
2024-04-18 21:17:33 UTC
148 MB
/etc/apache2
APACHE_ENVVARS/etc/apache2/envvars
GPG_KEYS1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PHPIZE_DEPSautoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c
PHP_ASC_URLhttps://www.php.net/distributions/php-8.3.16.tar.xz.asc
PHP_CFLAGS-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
PHP_CPPFLAGS-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
PHP_INI_DIR/usr/local/etc/php
PHP_LDFLAGS-Wl,-O1 -pie
PHP_SHA25640d3b4e6cac33d3bcefe096d75a28d4fb4e3a9615eb20a4de55ba139fbfacdd5
PHP_URLhttps://www.php.net/distributions/php-8.3.16.tar.xz
PHP_VERSION8.3.16
YOURLS_SHA25662a95ba766d62f3305d75944cbfe12d5a90c08c88fbf2f6e67150d36412b916f
YOURLS_VERSION1.9.2
[#000] sha256:7a3fc1134bc1af98e13c0b7ea743c863d5a17f830a5fbd5a7002f750500e76c2 - 16.64% (24.5 MB)
[#001] sha256:14c9207294b02015ac34880f1f56ba7aba77e9ad44c2e56070e7795521b1f6a3 - 0.0% (225 Bytes)
[#002] sha256:b3e1fabaf618c3afd89265d9788fb60f42da0814211fcaeac66285e500d129fb - 53.01% (78.2 MB)
[#003] sha256:1b9bb79371400ee7378d79cc65e4e73d605be2e8ab286b3cd68107181205baef - 0.0% (225 Bytes)
[#004] sha256:df7faff53dcc58d9302b633ce44e0a9bd9f85c81afcccd438587a174189215b2 - 12.55% (18.5 MB)
[#005] sha256:b654571c18d1236e05eb460b78c218d7c1a3a0e42886ca82302534fbffbe9aaa - 0.0% (435 Bytes)
[#006] sha256:afd3124d1f851f9c42dd3d168f86d100995a530e36736b1f98bb2398cec3c9af - 0.0% (488 Bytes)
[#007] sha256:a370d7b1a6964dbbf7af403478664ff709ca51b3d26d664cb1e078a2451071b5 - 8.19% (12.1 MB)
[#008] sha256:ecbb65a7a7d06bdd2000b73416763716092f3f157273acd182ff620c767edee9 - 0.0% (489 Bytes)
[#009] sha256:fbd53485309b68fbd7e3388193564095251c9de0f84c47f016cdac30f750af31 - 6.87% (10.1 MB)
[#010] sha256:d431282d868c83a17c043fde3a6410f33ec674685f4078eeff34df713b701855 - 0.0% (2.4 KB)
[#011] sha256:cdba1bad247946e1e61b1036d8b90804f678cf6975c0ba38c9e0d2a7d266da1d - 0.0% (245 Bytes)
[#012] sha256:1970f9c0ed711e2689a75936d67f6d7cd2be87f2e0d53ebf24158375e318855d - 0.0% (889 Bytes)
[#013] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)
[#014] sha256:46c0af5bad9d4e56473a6054b831034db990fa11554cc7ba1b71ef1c5bf1ffc5 - 0.1% (151 KB)
[#015] sha256:74296b57d7ded1fb72a3f8f7865f9dcb04d398f6706dd42a6b3ec5fd73f0b4cf - 0.0% (323 Bytes)
[#016] sha256:9a3e9eb663acfe17ff6e9b0928fd6f2da9c0297241865cd4afc379c4177498d2 - 0.0% (349 Bytes)
[#017] sha256:97e3629af2c36573a1ac1ddf0251e6d87bd159923502d51e38f1d8d24741682d - 2.63% (3.88 MB)
[#018] sha256:3ed4985d20b75ba00e25431f3e497d7649c32307884a3aa44e0c89bb551ac3eb - 0.0% (2 KB)
[#019] sha256:7a5106251e6d43a9e86b8f083bee9b330ff9a027229b0de900c00aab45c51364 - 0.0% (1.65 KB)
[#020] sha256:a38df0d8ac9958980f0bc58a0b1b45c674ff09fde43b602d3bc6e79bafa4b59b - 0.0% (333 Bytes)
# debian.sh --arch 'armel' out/ 'bookworm' '@1736726400'
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; { echo 'Package: php*'; echo 'Pin: release *'; echo 'Pin-Priority: -1'; } > /etc/apt/preferences.d/no-debian-php # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHPIZE_DEPS=autoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends $PHPIZE_DEPS ca-certificates curl xz-utils ; rm -rf /var/lib/apt/lists/* # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHP_INI_DIR=/usr/local/etc/php
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; mkdir -p "$PHP_INI_DIR/conf.d"; [ ! -d /var/www/html ]; mkdir -p /var/www/html; chown www-data:www-data /var/www/html; chmod 1777 /var/www/html # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV APACHE_CONFDIR=/etc/apache2
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV APACHE_ENVVARS=/etc/apache2/envvars
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends apache2; rm -rf /var/lib/apt/lists/*; sed -ri 's/^export ([^=]+)=(.*)$/: ${\1:=\2}\nexport \1/' "$APACHE_ENVVARS"; . "$APACHE_ENVVARS"; for dir in "$APACHE_LOCK_DIR" "$APACHE_RUN_DIR" "$APACHE_LOG_DIR" "$APACHE_RUN_DIR/socks" ; do rm -rvf "$dir"; mkdir -p "$dir"; chown "$APACHE_RUN_USER:$APACHE_RUN_GROUP" "$dir"; chmod 1777 "$dir"; done; rm -rvf /var/www/html/*; ln -sfT /dev/stderr "$APACHE_LOG_DIR/error.log"; ln -sfT /dev/stdout "$APACHE_LOG_DIR/access.log"; ln -sfT /dev/stdout "$APACHE_LOG_DIR/other_vhosts_access.log"; chown -R --no-dereference "$APACHE_RUN_USER:$APACHE_RUN_GROUP" "$APACHE_LOG_DIR" # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c a2dismod mpm_event && a2enmod mpm_prefork # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c { echo '<FilesMatch \.php$>'; echo '\tSetHandler application/x-httpd-php'; echo '</FilesMatch>'; echo; echo 'DirectoryIndex disabled'; echo 'DirectoryIndex index.php index.html'; echo; echo '<Directory /var/www/>'; echo '\tOptions -Indexes'; echo '\tAllowOverride All'; echo '</Directory>'; } | tee "$APACHE_CONFDIR/conf-available/docker-php.conf" && a2enconf docker-php # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHP_CFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHP_CPPFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHP_LDFLAGS=-Wl,-O1 -pie
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV GPG_KEYS=1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHP_VERSION=8.3.16
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHP_URL=https://www.php.net/distributions/php-8.3.16.tar.xz PHP_ASC_URL=https://www.php.net/distributions/php-8.3.16.tar.xz.asc
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHP_SHA256=40d3b4e6cac33d3bcefe096d75a28d4fb4e3a9615eb20a4de55ba139fbfacdd5
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends gnupg; rm -rf /var/lib/apt/lists/*; mkdir -p /usr/src; cd /usr/src; curl -fsSL -o php.tar.xz "$PHP_URL"; if [ -n "$PHP_SHA256" ]; then echo "$PHP_SHA256 *php.tar.xz" | sha256sum -c -; fi; if [ -n "$PHP_ASC_URL" ]; then curl -fsSL -o php.tar.xz.asc "$PHP_ASC_URL"; export GNUPGHOME="$(mktemp -d)"; for key in $GPG_KEYS; do gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key"; done; gpg --batch --verify php.tar.xz.asc php.tar.xz; gpgconf --kill all; rm -rf "$GNUPGHOME"; fi; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark > /dev/null; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)COPY docker-php-source /usr/local/bin/ # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends apache2-dev libargon2-dev libcurl4-openssl-dev libonig-dev libreadline-dev libsodium-dev libsqlite3-dev libssl-dev libxml2-dev zlib1g-dev ; export CFLAGS="$PHP_CFLAGS" CPPFLAGS="$PHP_CPPFLAGS" LDFLAGS="$PHP_LDFLAGS" PHP_BUILD_PROVIDER='https://github.com/docker-library/php' PHP_UNAME='Linux - Docker' ; docker-php-source extract; cd /usr/src/php; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; if [ ! -d /usr/include/curl ]; then ln -sT "/usr/include/$debMultiarch/curl" /usr/local/include/curl; fi; ./configure --build="$gnuArch" --with-config-file-path="$PHP_INI_DIR" --with-config-file-scan-dir="$PHP_INI_DIR/conf.d" --enable-option-checking=fatal --with-mhash --with-pic --enable-mbstring --enable-mysqlnd --with-password-argon2 --with-sodium=shared --with-pdo-sqlite=/usr --with-sqlite3=/usr --with-curl --with-iconv --with-openssl --with-readline --with-zlib --disable-phpdbg --with-pear --with-libdir="lib/$debMultiarch" --disable-cgi --with-apxs2 ; make -j "$(nproc)"; find -type f -name '*.a' -delete; make install; find /usr/local -type f -perm '/0111' -exec sh -euxc ' strip --strip-all "$@" || : ' -- '{}' + ; make clean; cp -v php.ini-* "$PHP_INI_DIR/"; cd /; docker-php-source delete; apt-mark auto '.*' > /dev/null; [ -z "$savedAptMark" ] || apt-mark manual $savedAptMark; find /usr/local -type f -executable -exec ldd '{}' ';' | awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); printf "*%s\n", so }' | sort -u | xargs -r dpkg-query --search | cut -d: -f1 | sort -u | xargs -r apt-mark manual ; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; rm -rf /var/lib/apt/lists/*; pecl update-channels; rm -rf /tmp/pear ~/.pearrc; php --version # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c docker-php-ext-enable sodium # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-php-entrypoint"]
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGWINCH
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)COPY apache2-foreground /usr/local/bin/ # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)WORKDIR /var/www/html
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)EXPOSE map[80/tcp:{}]
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)CMD ["apache2-foreground"]
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; docker-php-ext-install -j "$(nproc)" bcmath opcache pdo_mysql mysqli # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c { echo 'opcache.memory_consumption=128'; echo 'opcache.interned_strings_buffer=8'; echo 'opcache.max_accelerated_files=4000'; echo 'opcache.revalidate_freq=2'; echo 'opcache.fast_shutdown=1'; } > /usr/local/etc/php/conf.d/opcache-recommended.ini # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c a2enmod rewrite expires # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ARG YOURLS_VERSION=1.9.2
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ARG YOURLS_SHA256=62a95ba766d62f3305d75944cbfe12d5a90c08c88fbf2f6e67150d36412b916f
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV YOURLS_VERSION=1.9.2
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV YOURLS_SHA256=62a95ba766d62f3305d75944cbfe12d5a90c08c88fbf2f6e67150d36412b916f
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN |2 YOURLS_VERSION=1.9.2 YOURLS_SHA256=62a95ba766d62f3305d75944cbfe12d5a90c08c88fbf2f6e67150d36412b916f /bin/sh -c set -eux; curl -o yourls.tar.gz -fsSL "https://github.com/YOURLS/YOURLS/archive/${YOURLS_VERSION}.tar.gz"; echo "$YOURLS_SHA256 *yourls.tar.gz" | sha256sum -c -; tar -xf yourls.tar.gz -C /usr/src/; mv "/usr/src/YOURLS-${YOURLS_VERSION}" /usr/src/yourls; rm yourls.tar.gz; chown -R www-data:www-data /usr/src/yourls # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)COPY --chown=www-data:www-data config-container.php /usr/src/yourls/user/ # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)COPY container-entrypoint.sh /usr/local/bin/ # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)COPY .htaccess /usr/src/yourls/ # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["container-entrypoint.sh"]
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)CMD ["apache2-foreground"]
2024-04-18 21:17:33 UTC
139 MB
/etc/apache2
APACHE_ENVVARS/etc/apache2/envvars
GPG_KEYS1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PHPIZE_DEPSautoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c
PHP_ASC_URLhttps://www.php.net/distributions/php-8.3.16.tar.xz.asc
PHP_CFLAGS-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
PHP_CPPFLAGS-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
PHP_INI_DIR/usr/local/etc/php
PHP_LDFLAGS-Wl,-O1 -pie
PHP_SHA25640d3b4e6cac33d3bcefe096d75a28d4fb4e3a9615eb20a4de55ba139fbfacdd5
PHP_URLhttps://www.php.net/distributions/php-8.3.16.tar.xz
PHP_VERSION8.3.16
YOURLS_SHA25662a95ba766d62f3305d75944cbfe12d5a90c08c88fbf2f6e67150d36412b916f
YOURLS_VERSION1.9.2
[#000] sha256:f7fde15b664589586a61b714ca6b43dec045d0f187d81d4eb050918e17b0ff1e - 16.39% (22.8 MB)
[#001] sha256:1d546b00afb4b9d040080c0bcc406bf33316623067156773fc2c6b01571dc5c3 - 0.0% (225 Bytes)
[#002] sha256:0bbadf9d833fbe1e5f7e579b22da5a224c4248d4c38649c1535310aa87b326e8 - 52.21% (72.6 MB)
[#003] sha256:1827c0e6243599ec0c52a40858b85fe86d2ce54a4d77185b826e94ce33c26525 - 0.0% (223 Bytes)
[#004] sha256:d718ae00362fa1531399a71a0605a8c1022220e646f4e54cecb15f8249ef8649 - 12.93% (18 MB)
[#005] sha256:411786d2746e941cb797557cd9c2285f527461bc4a2045d6bfbb0a73450ca28b - 0.0% (439 Bytes)
[#006] sha256:a12ab02075e9800e9ff53812946d5404f8ddf60c94c5674950ae3f5bce341b47 - 0.0% (490 Bytes)
[#007] sha256:f4fa9ceb81ad9fe5cbef84e3d3732b5394b3550a5749df41adfc71bce4bdde5d - 8.69% (12.1 MB)
[#008] sha256:b0757c6697df2995b22d1f1629a4ce62a0ef5c6170e1cfb205606f409e1ce251 - 0.0% (489 Bytes)
[#009] sha256:d869e9126c873ee8b4a0849fe27999c20692836ac415ce62447ee781f3f610bb - 6.89% (9.58 MB)
[#010] sha256:0ef7b6ab5a45b190455e3934cbea82d1f7245579217ed14312a874c9632ce827 - 0.0% (2.4 KB)
[#011] sha256:8113dd86166b113f16cb459e2ddfecae4bbeb52fc2b6f18a2a46cb87dd5709c3 - 0.0% (244 Bytes)
[#012] sha256:5f8609d96cdea47a39da6091fe48cbde54dc4a777c0fafe608356e575f19b41c - 0.0% (891 Bytes)
[#013] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)
[#014] sha256:1df342bd591482f0071d5011db1c2838eb71a306f57e79e3a43aef1d5db3449d - 0.1% (138 KB)
[#015] sha256:0bec0273f45cc1749bf908b01bbe687f5a9c26ec13769bd1a8f5cc88074b499e - 0.0% (324 Bytes)
[#016] sha256:a94693c1bacb9724eb8cc7d6f1c46149cca63365d94aa301bdbf048d53b46a4c - 0.0% (351 Bytes)
[#017] sha256:32b9a8278aa041c41b2b9811c3014cf6db357177e6fdbfe0ec9c543f9f3c842c - 2.79% (3.88 MB)
[#018] sha256:44346b9335fdecbc97e39d2cc7fa037bcd20e757a993b3847f3a5fe142f91b1e - 0.0% (2 KB)
[#019] sha256:f1dfc3f1acb64b111b6636174c1dde6d0055284fd5c4ceb649fddd69e8b85f7c - 0.0% (1.65 KB)
[#020] sha256:ce3cdbdafd9f872b1afd4920a6e5b6b4a7c8025733f19eddc4af156ebed60392 - 0.0% (329 Bytes)
# debian.sh --arch 'armhf' out/ 'bookworm' '@1736726400'
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; { echo 'Package: php*'; echo 'Pin: release *'; echo 'Pin-Priority: -1'; } > /etc/apt/preferences.d/no-debian-php # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHPIZE_DEPS=autoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends $PHPIZE_DEPS ca-certificates curl xz-utils ; rm -rf /var/lib/apt/lists/* # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHP_INI_DIR=/usr/local/etc/php
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; mkdir -p "$PHP_INI_DIR/conf.d"; [ ! -d /var/www/html ]; mkdir -p /var/www/html; chown www-data:www-data /var/www/html; chmod 1777 /var/www/html # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV APACHE_CONFDIR=/etc/apache2
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV APACHE_ENVVARS=/etc/apache2/envvars
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends apache2; rm -rf /var/lib/apt/lists/*; sed -ri 's/^export ([^=]+)=(.*)$/: ${\1:=\2}\nexport \1/' "$APACHE_ENVVARS"; . "$APACHE_ENVVARS"; for dir in "$APACHE_LOCK_DIR" "$APACHE_RUN_DIR" "$APACHE_LOG_DIR" "$APACHE_RUN_DIR/socks" ; do rm -rvf "$dir"; mkdir -p "$dir"; chown "$APACHE_RUN_USER:$APACHE_RUN_GROUP" "$dir"; chmod 1777 "$dir"; done; rm -rvf /var/www/html/*; ln -sfT /dev/stderr "$APACHE_LOG_DIR/error.log"; ln -sfT /dev/stdout "$APACHE_LOG_DIR/access.log"; ln -sfT /dev/stdout "$APACHE_LOG_DIR/other_vhosts_access.log"; chown -R --no-dereference "$APACHE_RUN_USER:$APACHE_RUN_GROUP" "$APACHE_LOG_DIR" # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c a2dismod mpm_event && a2enmod mpm_prefork # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c { echo '<FilesMatch \.php$>'; echo '\tSetHandler application/x-httpd-php'; echo '</FilesMatch>'; echo; echo 'DirectoryIndex disabled'; echo 'DirectoryIndex index.php index.html'; echo; echo '<Directory /var/www/>'; echo '\tOptions -Indexes'; echo '\tAllowOverride All'; echo '</Directory>'; } | tee "$APACHE_CONFDIR/conf-available/docker-php.conf" && a2enconf docker-php # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHP_CFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHP_CPPFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHP_LDFLAGS=-Wl,-O1 -pie
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV GPG_KEYS=1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHP_VERSION=8.3.16
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHP_URL=https://www.php.net/distributions/php-8.3.16.tar.xz PHP_ASC_URL=https://www.php.net/distributions/php-8.3.16.tar.xz.asc
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHP_SHA256=40d3b4e6cac33d3bcefe096d75a28d4fb4e3a9615eb20a4de55ba139fbfacdd5
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends gnupg; rm -rf /var/lib/apt/lists/*; mkdir -p /usr/src; cd /usr/src; curl -fsSL -o php.tar.xz "$PHP_URL"; if [ -n "$PHP_SHA256" ]; then echo "$PHP_SHA256 *php.tar.xz" | sha256sum -c -; fi; if [ -n "$PHP_ASC_URL" ]; then curl -fsSL -o php.tar.xz.asc "$PHP_ASC_URL"; export GNUPGHOME="$(mktemp -d)"; for key in $GPG_KEYS; do gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key"; done; gpg --batch --verify php.tar.xz.asc php.tar.xz; gpgconf --kill all; rm -rf "$GNUPGHOME"; fi; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark > /dev/null; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)COPY docker-php-source /usr/local/bin/ # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends apache2-dev libargon2-dev libcurl4-openssl-dev libonig-dev libreadline-dev libsodium-dev libsqlite3-dev libssl-dev libxml2-dev zlib1g-dev ; export CFLAGS="$PHP_CFLAGS" CPPFLAGS="$PHP_CPPFLAGS" LDFLAGS="$PHP_LDFLAGS" PHP_BUILD_PROVIDER='https://github.com/docker-library/php' PHP_UNAME='Linux - Docker' ; docker-php-source extract; cd /usr/src/php; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; if [ ! -d /usr/include/curl ]; then ln -sT "/usr/include/$debMultiarch/curl" /usr/local/include/curl; fi; ./configure --build="$gnuArch" --with-config-file-path="$PHP_INI_DIR" --with-config-file-scan-dir="$PHP_INI_DIR/conf.d" --enable-option-checking=fatal --with-mhash --with-pic --enable-mbstring --enable-mysqlnd --with-password-argon2 --with-sodium=shared --with-pdo-sqlite=/usr --with-sqlite3=/usr --with-curl --with-iconv --with-openssl --with-readline --with-zlib --disable-phpdbg --with-pear --with-libdir="lib/$debMultiarch" --disable-cgi --with-apxs2 ; make -j "$(nproc)"; find -type f -name '*.a' -delete; make install; find /usr/local -type f -perm '/0111' -exec sh -euxc ' strip --strip-all "$@" || : ' -- '{}' + ; make clean; cp -v php.ini-* "$PHP_INI_DIR/"; cd /; docker-php-source delete; apt-mark auto '.*' > /dev/null; [ -z "$savedAptMark" ] || apt-mark manual $savedAptMark; find /usr/local -type f -executable -exec ldd '{}' ';' | awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); printf "*%s\n", so }' | sort -u | xargs -r dpkg-query --search | cut -d: -f1 | sort -u | xargs -r apt-mark manual ; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; rm -rf /var/lib/apt/lists/*; pecl update-channels; rm -rf /tmp/pear ~/.pearrc; php --version # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c docker-php-ext-enable sodium # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-php-entrypoint"]
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGWINCH
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)COPY apache2-foreground /usr/local/bin/ # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)WORKDIR /var/www/html
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)EXPOSE map[80/tcp:{}]
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)CMD ["apache2-foreground"]
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; docker-php-ext-install -j "$(nproc)" bcmath opcache pdo_mysql mysqli # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c { echo 'opcache.memory_consumption=128'; echo 'opcache.interned_strings_buffer=8'; echo 'opcache.max_accelerated_files=4000'; echo 'opcache.revalidate_freq=2'; echo 'opcache.fast_shutdown=1'; } > /usr/local/etc/php/conf.d/opcache-recommended.ini # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c a2enmod rewrite expires # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ARG YOURLS_VERSION=1.9.2
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ARG YOURLS_SHA256=62a95ba766d62f3305d75944cbfe12d5a90c08c88fbf2f6e67150d36412b916f
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV YOURLS_VERSION=1.9.2
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV YOURLS_SHA256=62a95ba766d62f3305d75944cbfe12d5a90c08c88fbf2f6e67150d36412b916f
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN |2 YOURLS_VERSION=1.9.2 YOURLS_SHA256=62a95ba766d62f3305d75944cbfe12d5a90c08c88fbf2f6e67150d36412b916f /bin/sh -c set -eux; curl -o yourls.tar.gz -fsSL "https://github.com/YOURLS/YOURLS/archive/${YOURLS_VERSION}.tar.gz"; echo "$YOURLS_SHA256 *yourls.tar.gz" | sha256sum -c -; tar -xf yourls.tar.gz -C /usr/src/; mv "/usr/src/YOURLS-${YOURLS_VERSION}" /usr/src/yourls; rm yourls.tar.gz; chown -R www-data:www-data /usr/src/yourls # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)COPY --chown=www-data:www-data config-container.php /usr/src/yourls/user/ # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)COPY container-entrypoint.sh /usr/local/bin/ # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)COPY .htaccess /usr/src/yourls/ # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["container-entrypoint.sh"]
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)CMD ["apache2-foreground"]
2024-04-18 21:17:33 UTC
167 MB
/etc/apache2
APACHE_ENVVARS/etc/apache2/envvars
GPG_KEYS1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PHPIZE_DEPSautoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c
PHP_ASC_URLhttps://www.php.net/distributions/php-8.3.16.tar.xz.asc
PHP_CFLAGS-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
PHP_CPPFLAGS-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
PHP_INI_DIR/usr/local/etc/php
PHP_LDFLAGS-Wl,-O1 -pie
PHP_SHA25640d3b4e6cac33d3bcefe096d75a28d4fb4e3a9615eb20a4de55ba139fbfacdd5
PHP_URLhttps://www.php.net/distributions/php-8.3.16.tar.xz
PHP_VERSION8.3.16
YOURLS_SHA25662a95ba766d62f3305d75944cbfe12d5a90c08c88fbf2f6e67150d36412b916f
YOURLS_VERSION1.9.2
[#000] sha256:7ce705000c390df8b2edde0e8b9c65a6677da4503a8f8fd89b355a3f827a275f - 15.98% (26.7 MB)
[#001] sha256:48015c6e07faccdd2a54d1e2ccecbd028511c6c5d8cf9a4f84b8d4d42d775ba8 - 0.0% (225 Bytes)
[#002] sha256:69f6eaa105a9e29cbbbc0157f5082daabecac6d65df1a6be8e50afa6dd8b23a3 - 55.92% (93.6 MB)
[#003] sha256:4e3f24c5a85b79cc5db518b237cd81340b2b5649ed577353635cba0aa5362458 - 0.0% (226 Bytes)
[#004] sha256:37b226d860afc85e06f588b3f648963225616fb252f0f4d759999b9378e564e8 - 11.47% (19.2 MB)
[#005] sha256:4cc75481d6ff5615af00c9aa8f15d5ee5354ad284d2a792301107bdea3b78816 - 0.0% (436 Bytes)
[#006] sha256:596177a782ea080f91870a2b548372f3d7dc9e0c7cb3069ea29c796c4f94d314 - 0.0% (486 Bytes)
[#007] sha256:d7501a5f7f16a2d6582ce6dbddccf9c0029d8ae972b402a5c7f53e5713636c5e - 7.22% (12.1 MB)
[#008] sha256:783f81a0d40d3714eb0efc5caa1be37f1dc34e985cc45b50d056d4e5c80c9959 - 0.0% (488 Bytes)
[#009] sha256:38ad6427349967c1f0286381864da6f4960a0dde4bb37aebc6119ba51a6c5efa - 6.64% (11.1 MB)
[#010] sha256:5973d4fe8f60777ea79ee8588ad9d2aaf78ec3e9b5beb53af046a4f192474c4e - 0.0% (2.4 KB)
[#011] sha256:4b3bf1fac613ab2528a3a606eab5ccf3cc5c7a4d1baea110c8cc9a192c8a1afd - 0.0% (245 Bytes)
[#012] sha256:afd158ba2109743673047ff8abd5f2e0f6c42fe93382e29ca0858b84174a1722 - 0.0% (892 Bytes)
[#013] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)
[#014] sha256:52eb8d57d4ad850491f2eaf513319f91aa47ac50f7bbc10a07a397639e19c213 - 0.45% (777 KB)
[#015] sha256:51f7a883641a1774e26d959eb08378a8470e0e21a8f40a59783fbaee99689373 - 0.0% (323 Bytes)
[#016] sha256:c1b65aa78990f4bb22215ee46739c85252852763ecd0e959e91696ff46859a3c - 0.0% (349 Bytes)
[#017] sha256:77d3580147705e20fd7000adeb24a8d6923bd32f4b193263f29d3acf1a0da12a - 2.32% (3.88 MB)
[#018] sha256:aa68acab4a66a440c97dd6f5a05505e23164fa139f36fe21b927b053e5803427 - 0.0% (2 KB)
[#019] sha256:d3cc611248ecb6467c1c2adbff980b71c7fcd65bcc5608756f0b2731e125e6fa - 0.0% (1.65 KB)
[#020] sha256:f5f3af170ba427763fc37db22a1dc0b889ba107dfc504adfd0b426f1e0026e22 - 0.0% (330 Bytes)
# debian.sh --arch 'arm64' out/ 'bookworm' '@1736726400'
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; { echo 'Package: php*'; echo 'Pin: release *'; echo 'Pin-Priority: -1'; } > /etc/apt/preferences.d/no-debian-php # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHPIZE_DEPS=autoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends $PHPIZE_DEPS ca-certificates curl xz-utils ; rm -rf /var/lib/apt/lists/* # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHP_INI_DIR=/usr/local/etc/php
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; mkdir -p "$PHP_INI_DIR/conf.d"; [ ! -d /var/www/html ]; mkdir -p /var/www/html; chown www-data:www-data /var/www/html; chmod 1777 /var/www/html # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV APACHE_CONFDIR=/etc/apache2
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV APACHE_ENVVARS=/etc/apache2/envvars
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends apache2; rm -rf /var/lib/apt/lists/*; sed -ri 's/^export ([^=]+)=(.*)$/: ${\1:=\2}\nexport \1/' "$APACHE_ENVVARS"; . "$APACHE_ENVVARS"; for dir in "$APACHE_LOCK_DIR" "$APACHE_RUN_DIR" "$APACHE_LOG_DIR" "$APACHE_RUN_DIR/socks" ; do rm -rvf "$dir"; mkdir -p "$dir"; chown "$APACHE_RUN_USER:$APACHE_RUN_GROUP" "$dir"; chmod 1777 "$dir"; done; rm -rvf /var/www/html/*; ln -sfT /dev/stderr "$APACHE_LOG_DIR/error.log"; ln -sfT /dev/stdout "$APACHE_LOG_DIR/access.log"; ln -sfT /dev/stdout "$APACHE_LOG_DIR/other_vhosts_access.log"; chown -R --no-dereference "$APACHE_RUN_USER:$APACHE_RUN_GROUP" "$APACHE_LOG_DIR" # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c a2dismod mpm_event && a2enmod mpm_prefork # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c { echo '<FilesMatch \.php$>'; echo '\tSetHandler application/x-httpd-php'; echo '</FilesMatch>'; echo; echo 'DirectoryIndex disabled'; echo 'DirectoryIndex index.php index.html'; echo; echo '<Directory /var/www/>'; echo '\tOptions -Indexes'; echo '\tAllowOverride All'; echo '</Directory>'; } | tee "$APACHE_CONFDIR/conf-available/docker-php.conf" && a2enconf docker-php # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHP_CFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHP_CPPFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHP_LDFLAGS=-Wl,-O1 -pie
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV GPG_KEYS=1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHP_VERSION=8.3.16
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHP_URL=https://www.php.net/distributions/php-8.3.16.tar.xz PHP_ASC_URL=https://www.php.net/distributions/php-8.3.16.tar.xz.asc
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHP_SHA256=40d3b4e6cac33d3bcefe096d75a28d4fb4e3a9615eb20a4de55ba139fbfacdd5
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends gnupg; rm -rf /var/lib/apt/lists/*; mkdir -p /usr/src; cd /usr/src; curl -fsSL -o php.tar.xz "$PHP_URL"; if [ -n "$PHP_SHA256" ]; then echo "$PHP_SHA256 *php.tar.xz" | sha256sum -c -; fi; if [ -n "$PHP_ASC_URL" ]; then curl -fsSL -o php.tar.xz.asc "$PHP_ASC_URL"; export GNUPGHOME="$(mktemp -d)"; for key in $GPG_KEYS; do gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key"; done; gpg --batch --verify php.tar.xz.asc php.tar.xz; gpgconf --kill all; rm -rf "$GNUPGHOME"; fi; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark > /dev/null; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)COPY docker-php-source /usr/local/bin/ # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends apache2-dev libargon2-dev libcurl4-openssl-dev libonig-dev libreadline-dev libsodium-dev libsqlite3-dev libssl-dev libxml2-dev zlib1g-dev ; export CFLAGS="$PHP_CFLAGS" CPPFLAGS="$PHP_CPPFLAGS" LDFLAGS="$PHP_LDFLAGS" PHP_BUILD_PROVIDER='https://github.com/docker-library/php' PHP_UNAME='Linux - Docker' ; docker-php-source extract; cd /usr/src/php; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; if [ ! -d /usr/include/curl ]; then ln -sT "/usr/include/$debMultiarch/curl" /usr/local/include/curl; fi; ./configure --build="$gnuArch" --with-config-file-path="$PHP_INI_DIR" --with-config-file-scan-dir="$PHP_INI_DIR/conf.d" --enable-option-checking=fatal --with-mhash --with-pic --enable-mbstring --enable-mysqlnd --with-password-argon2 --with-sodium=shared --with-pdo-sqlite=/usr --with-sqlite3=/usr --with-curl --with-iconv --with-openssl --with-readline --with-zlib --disable-phpdbg --with-pear --with-libdir="lib/$debMultiarch" --disable-cgi --with-apxs2 ; make -j "$(nproc)"; find -type f -name '*.a' -delete; make install; find /usr/local -type f -perm '/0111' -exec sh -euxc ' strip --strip-all "$@" || : ' -- '{}' + ; make clean; cp -v php.ini-* "$PHP_INI_DIR/"; cd /; docker-php-source delete; apt-mark auto '.*' > /dev/null; [ -z "$savedAptMark" ] || apt-mark manual $savedAptMark; find /usr/local -type f -executable -exec ldd '{}' ';' | awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); printf "*%s\n", so }' | sort -u | xargs -r dpkg-query --search | cut -d: -f1 | sort -u | xargs -r apt-mark manual ; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; rm -rf /var/lib/apt/lists/*; pecl update-channels; rm -rf /tmp/pear ~/.pearrc; php --version # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c docker-php-ext-enable sodium # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-php-entrypoint"]
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGWINCH
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)COPY apache2-foreground /usr/local/bin/ # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)WORKDIR /var/www/html
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)EXPOSE map[80/tcp:{}]
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)CMD ["apache2-foreground"]
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; docker-php-ext-install -j "$(nproc)" bcmath opcache pdo_mysql mysqli # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c { echo 'opcache.memory_consumption=128'; echo 'opcache.interned_strings_buffer=8'; echo 'opcache.max_accelerated_files=4000'; echo 'opcache.revalidate_freq=2'; echo 'opcache.fast_shutdown=1'; } > /usr/local/etc/php/conf.d/opcache-recommended.ini # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c a2enmod rewrite expires # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ARG YOURLS_VERSION=1.9.2
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ARG YOURLS_SHA256=62a95ba766d62f3305d75944cbfe12d5a90c08c88fbf2f6e67150d36412b916f
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV YOURLS_VERSION=1.9.2
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV YOURLS_SHA256=62a95ba766d62f3305d75944cbfe12d5a90c08c88fbf2f6e67150d36412b916f
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN |2 YOURLS_VERSION=1.9.2 YOURLS_SHA256=62a95ba766d62f3305d75944cbfe12d5a90c08c88fbf2f6e67150d36412b916f /bin/sh -c set -eux; curl -o yourls.tar.gz -fsSL "https://github.com/YOURLS/YOURLS/archive/${YOURLS_VERSION}.tar.gz"; echo "$YOURLS_SHA256 *yourls.tar.gz" | sha256sum -c -; tar -xf yourls.tar.gz -C /usr/src/; mv "/usr/src/YOURLS-${YOURLS_VERSION}" /usr/src/yourls; rm yourls.tar.gz; chown -R www-data:www-data /usr/src/yourls # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)COPY --chown=www-data:www-data config-container.php /usr/src/yourls/user/ # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)COPY container-entrypoint.sh /usr/local/bin/ # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)COPY .htaccess /usr/src/yourls/ # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["container-entrypoint.sh"]
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)CMD ["apache2-foreground"]
2024-04-18 21:17:33 UTC
150 MB
/etc/apache2
APACHE_ENVVARS/etc/apache2/envvars
GPG_KEYS1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PHPIZE_DEPSautoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c
PHP_ASC_URLhttps://www.php.net/distributions/php-8.3.16.tar.xz.asc
PHP_CFLAGS-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
PHP_CPPFLAGS-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
PHP_INI_DIR/usr/local/etc/php
PHP_LDFLAGS-Wl,-O1 -pie
PHP_SHA25640d3b4e6cac33d3bcefe096d75a28d4fb4e3a9615eb20a4de55ba139fbfacdd5
PHP_URLhttps://www.php.net/distributions/php-8.3.16.tar.xz
PHP_VERSION8.3.16
YOURLS_SHA25662a95ba766d62f3305d75944cbfe12d5a90c08c88fbf2f6e67150d36412b916f
YOURLS_VERSION1.9.2
[#000] sha256:b08d7e697b04bda8cef97763765ebbbc16790e22945b5ab31d97d448a15c8650 - 18.16% (27.2 MB)
[#001] sha256:89185b6d37a912303ece30771194df4d9a4bd81c186ebd0c112827238102177a - 0.0% (224 Bytes)
[#002] sha256:4b93be406fdfc396e7ea27bf3106aaa3e69436152e180b74a54061e746a13506 - 51.43% (76.9 MB)
[#003] sha256:72c06af120fe87200b0a7299150015ee7a1b24d5687e5fd9ff3e0b2c26b7b1bd - 0.0% (223 Bytes)
[#004] sha256:7a3818176c2d30ffebe876444f32e1f588e14fd44d309ff14f219bf9f301724c - 12.79% (19.1 MB)
[#005] sha256:f948a5b4d2d978d9e0c3c187d20ef210a55e9b0b9ba01a8bc26534c943b743bc - 0.0% (434 Bytes)
[#006] sha256:53d04f95a1757a2fc4d76274cfe076617f96e70a35555d99d393c22d88a8b0ac - 0.0% (485 Bytes)
[#007] sha256:4190647b22e48a4d7710952f56b7c867db4b2cdb4c789b21781084f9cec2ff0a - 8.08% (12.1 MB)
[#008] sha256:2131f8309150902c0f92208668f5490922d80f9de953f6d15dd8bba7e79f208a - 0.0% (490 Bytes)
[#009] sha256:2975007b58ec732d999676de1752b1665eb067748ca726bdae4f541cac2bceaa - 6.84% (10.2 MB)
[#010] sha256:1bd9c04a63b8f8adbb4c700caf8cc559f3bb2a78d6628a9f32fc2fad4e609ac1 - 0.0% (2.4 KB)
[#011] sha256:0fa4d0a718ffc5ebdee262283e8c6aa8b8cafb9fbdd171f08ccce16477507295 - 0.0% (248 Bytes)
[#012] sha256:e7c9534e293d27130098260af5d70bfceabed3766e5e51870f48694ff76fe9e6 - 0.0% (893 Bytes)
[#013] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)
[#014] sha256:b0fddb9de163005fbe70b5b6f74b66f1072b74dd789d51013fd0304e0dc28a98 - 0.1% (150 KB)
[#015] sha256:a8538ebdf3826cc918738a4d6d6ff5aa351125cb6142bdaff0dbb59b6238e868 - 0.0% (326 Bytes)
[#016] sha256:eee1252d617d90aa08850c9d5fbf4be117b88d48a2470784c789325e10dc6ef9 - 0.0% (350 Bytes)
[#017] sha256:2017d191353a5dbb22057391b8170b251b2b4a344aaea80de02da4b434296662 - 2.6% (3.88 MB)
[#018] sha256:2c32104ff80cec26715aaa5315e94e54238219ecb99685087b814daed9093033 - 0.0% (2 KB)
[#019] sha256:e9e212d831563aad891c2602e1bc8566a40ac326b68a1196ed585b3a16c43995 - 0.0% (1.65 KB)
[#020] sha256:4ad93ca520685e0e38cb991027e007e6b006b481631bcb5b7eaee31864d74498 - 0.0% (333 Bytes)
# debian.sh --arch 'mips64el' out/ 'bookworm' '@1736726400'
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; { echo 'Package: php*'; echo 'Pin: release *'; echo 'Pin-Priority: -1'; } > /etc/apt/preferences.d/no-debian-php # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHPIZE_DEPS=autoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends $PHPIZE_DEPS ca-certificates curl xz-utils ; rm -rf /var/lib/apt/lists/* # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHP_INI_DIR=/usr/local/etc/php
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; mkdir -p "$PHP_INI_DIR/conf.d"; [ ! -d /var/www/html ]; mkdir -p /var/www/html; chown www-data:www-data /var/www/html; chmod 1777 /var/www/html # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV APACHE_CONFDIR=/etc/apache2
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV APACHE_ENVVARS=/etc/apache2/envvars
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends apache2; rm -rf /var/lib/apt/lists/*; sed -ri 's/^export ([^=]+)=(.*)$/: ${\1:=\2}\nexport \1/' "$APACHE_ENVVARS"; . "$APACHE_ENVVARS"; for dir in "$APACHE_LOCK_DIR" "$APACHE_RUN_DIR" "$APACHE_LOG_DIR" "$APACHE_RUN_DIR/socks" ; do rm -rvf "$dir"; mkdir -p "$dir"; chown "$APACHE_RUN_USER:$APACHE_RUN_GROUP" "$dir"; chmod 1777 "$dir"; done; rm -rvf /var/www/html/*; ln -sfT /dev/stderr "$APACHE_LOG_DIR/error.log"; ln -sfT /dev/stdout "$APACHE_LOG_DIR/access.log"; ln -sfT /dev/stdout "$APACHE_LOG_DIR/other_vhosts_access.log"; chown -R --no-dereference "$APACHE_RUN_USER:$APACHE_RUN_GROUP" "$APACHE_LOG_DIR" # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c a2dismod mpm_event && a2enmod mpm_prefork # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c { echo '<FilesMatch \.php$>'; echo '\tSetHandler application/x-httpd-php'; echo '</FilesMatch>'; echo; echo 'DirectoryIndex disabled'; echo 'DirectoryIndex index.php index.html'; echo; echo '<Directory /var/www/>'; echo '\tOptions -Indexes'; echo '\tAllowOverride All'; echo '</Directory>'; } | tee "$APACHE_CONFDIR/conf-available/docker-php.conf" && a2enconf docker-php # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHP_CFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHP_CPPFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHP_LDFLAGS=-Wl,-O1 -pie
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV GPG_KEYS=1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHP_VERSION=8.3.16
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHP_URL=https://www.php.net/distributions/php-8.3.16.tar.xz PHP_ASC_URL=https://www.php.net/distributions/php-8.3.16.tar.xz.asc
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHP_SHA256=40d3b4e6cac33d3bcefe096d75a28d4fb4e3a9615eb20a4de55ba139fbfacdd5
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends gnupg; rm -rf /var/lib/apt/lists/*; mkdir -p /usr/src; cd /usr/src; curl -fsSL -o php.tar.xz "$PHP_URL"; if [ -n "$PHP_SHA256" ]; then echo "$PHP_SHA256 *php.tar.xz" | sha256sum -c -; fi; if [ -n "$PHP_ASC_URL" ]; then curl -fsSL -o php.tar.xz.asc "$PHP_ASC_URL"; export GNUPGHOME="$(mktemp -d)"; for key in $GPG_KEYS; do gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key"; done; gpg --batch --verify php.tar.xz.asc php.tar.xz; gpgconf --kill all; rm -rf "$GNUPGHOME"; fi; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark > /dev/null; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)COPY docker-php-source /usr/local/bin/ # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends apache2-dev libargon2-dev libcurl4-openssl-dev libonig-dev libreadline-dev libsodium-dev libsqlite3-dev libssl-dev libxml2-dev zlib1g-dev ; export CFLAGS="$PHP_CFLAGS" CPPFLAGS="$PHP_CPPFLAGS" LDFLAGS="$PHP_LDFLAGS" PHP_BUILD_PROVIDER='https://github.com/docker-library/php' PHP_UNAME='Linux - Docker' ; docker-php-source extract; cd /usr/src/php; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; if [ ! -d /usr/include/curl ]; then ln -sT "/usr/include/$debMultiarch/curl" /usr/local/include/curl; fi; ./configure --build="$gnuArch" --with-config-file-path="$PHP_INI_DIR" --with-config-file-scan-dir="$PHP_INI_DIR/conf.d" --enable-option-checking=fatal --with-mhash --with-pic --enable-mbstring --enable-mysqlnd --with-password-argon2 --with-sodium=shared --with-pdo-sqlite=/usr --with-sqlite3=/usr --with-curl --with-iconv --with-openssl --with-readline --with-zlib --disable-phpdbg --with-pear --with-libdir="lib/$debMultiarch" --disable-cgi --with-apxs2 ; make -j "$(nproc)"; find -type f -name '*.a' -delete; make install; find /usr/local -type f -perm '/0111' -exec sh -euxc ' strip --strip-all "$@" || : ' -- '{}' + ; make clean; cp -v php.ini-* "$PHP_INI_DIR/"; cd /; docker-php-source delete; apt-mark auto '.*' > /dev/null; [ -z "$savedAptMark" ] || apt-mark manual $savedAptMark; find /usr/local -type f -executable -exec ldd '{}' ';' | awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); printf "*%s\n", so }' | sort -u | xargs -r dpkg-query --search | cut -d: -f1 | sort -u | xargs -r apt-mark manual ; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; rm -rf /var/lib/apt/lists/*; pecl update-channels; rm -rf /tmp/pear ~/.pearrc; php --version # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c docker-php-ext-enable sodium # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-php-entrypoint"]
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGWINCH
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)COPY apache2-foreground /usr/local/bin/ # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)WORKDIR /var/www/html
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)EXPOSE map[80/tcp:{}]
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)CMD ["apache2-foreground"]
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; docker-php-ext-install -j "$(nproc)" bcmath opcache pdo_mysql mysqli # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c { echo 'opcache.memory_consumption=128'; echo 'opcache.interned_strings_buffer=8'; echo 'opcache.max_accelerated_files=4000'; echo 'opcache.revalidate_freq=2'; echo 'opcache.fast_shutdown=1'; } > /usr/local/etc/php/conf.d/opcache-recommended.ini # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c a2enmod rewrite expires # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ARG YOURLS_VERSION=1.9.2
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ARG YOURLS_SHA256=62a95ba766d62f3305d75944cbfe12d5a90c08c88fbf2f6e67150d36412b916f
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV YOURLS_VERSION=1.9.2
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV YOURLS_SHA256=62a95ba766d62f3305d75944cbfe12d5a90c08c88fbf2f6e67150d36412b916f
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN |2 YOURLS_VERSION=1.9.2 YOURLS_SHA256=62a95ba766d62f3305d75944cbfe12d5a90c08c88fbf2f6e67150d36412b916f /bin/sh -c set -eux; curl -o yourls.tar.gz -fsSL "https://github.com/YOURLS/YOURLS/archive/${YOURLS_VERSION}.tar.gz"; echo "$YOURLS_SHA256 *yourls.tar.gz" | sha256sum -c -; tar -xf yourls.tar.gz -C /usr/src/; mv "/usr/src/YOURLS-${YOURLS_VERSION}" /usr/src/yourls; rm yourls.tar.gz; chown -R www-data:www-data /usr/src/yourls # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)COPY --chown=www-data:www-data config-container.php /usr/src/yourls/user/ # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)COPY container-entrypoint.sh /usr/local/bin/ # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)COPY .htaccess /usr/src/yourls/ # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["container-entrypoint.sh"]
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)CMD ["apache2-foreground"]
2024-04-18 21:17:33 UTC
177 MB
/etc/apache2
APACHE_ENVVARS/etc/apache2/envvars
GPG_KEYS1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PHPIZE_DEPSautoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c
PHP_ASC_URLhttps://www.php.net/distributions/php-8.3.16.tar.xz.asc
PHP_CFLAGS-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
PHP_CPPFLAGS-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
PHP_INI_DIR/usr/local/etc/php
PHP_LDFLAGS-Wl,-O1 -pie
PHP_SHA25640d3b4e6cac33d3bcefe096d75a28d4fb4e3a9615eb20a4de55ba139fbfacdd5
PHP_URLhttps://www.php.net/distributions/php-8.3.16.tar.xz
PHP_VERSION8.3.16
YOURLS_SHA25662a95ba766d62f3305d75944cbfe12d5a90c08c88fbf2f6e67150d36412b916f
YOURLS_VERSION1.9.2
[#000] sha256:70e5167c90e251fcf2a687213601657926417de61cc905425399c9fcffb3d50f - 17.26% (30.6 MB)
[#001] sha256:880827561304c75010a4d05501b52a649ab01b28573a0e1238b8b2cfc0987b4a - 0.0% (225 Bytes)
[#002] sha256:8101bc0347decf245b442b5f7813aa3ea26f953213626a52bbbf98a1f1d3319c - 55.64% (98.5 MB)
[#003] sha256:ba88d523ef6cd37508f451e4c05ba1fe1868379b426cce9cbb1f53b8af157e5d - 0.0% (222 Bytes)
[#004] sha256:cea18a4b19614ee4d17b57f487a82acbebe7f15190aaa1eec4462128f0706f6e - 11.48% (20.3 MB)
[#005] sha256:6944fbecd5666a9d107e035a3cb83d377e9dd45381ffa808a6a340b65dca06fc - 0.0% (437 Bytes)
[#006] sha256:09461f24bff765c8bb36f87bf7a5b94eb23769ddb0d51aeff41555855d5da9f1 - 0.0% (494 Bytes)
[#007] sha256:2496bee3a6bed3496f373f458c85c7ac4ca2358a728e7e480faa46a491d20078 - 6.82% (12.1 MB)
[#008] sha256:8b0d6aacdcb5ceffb59fa9b8eb65d4db7fd56d1a476195867a1f3d01806c2de4 - 0.0% (489 Bytes)
[#009] sha256:4da6226fab2aa05eaab5842dbac1ac105ea5155f25c1b4460dec110b162fcf85 - 6.5% (11.5 MB)
[#010] sha256:74e4c143695e8b0bac527c7b332fcad67492a65b770ece9f74f69ffcb229e352 - 0.0% (2.4 KB)
[#011] sha256:a90bf43ae8584784ba1386b61ab6b1d85bf6554faa23fab87e9eed1a8ccb71bb - 0.0% (244 Bytes)
[#012] sha256:24b99e76fc35633e0f4185d678153b8ff3fb69bc22bd1bd911b267cb41d6aee7 - 0.0% (892 Bytes)
[#013] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)
[#014] sha256:5f3906ce7f7043a2d647b902139761977e079d7ccbac1f4477bec96e191b72db - 0.1% (184 KB)
[#015] sha256:650185496d849e04ec702c4370a99b635bf92eb4549c0be87c0bd8984e95a5c1 - 0.0% (322 Bytes)
[#016] sha256:bb75b0b373cb8224ecf6466c2a48a7981dca8933bd87e4fdd9af9d6527a97dbb - 0.0% (351 Bytes)
[#017] sha256:1f0986986944681044d96b97975806f7d4d300bdbc00b9ffd5fe72d973b7d4ca - 2.19% (3.88 MB)
[#018] sha256:c37e2e513e2f4e0f6842e65b3705994e4d146e0bac5c411081b7b4b714672d8b - 0.0% (2.01 KB)
[#019] sha256:e73c48b5285a67443679b032726ce905109f348cf67e68b003bf56bc9662eedd - 0.0% (1.65 KB)
[#020] sha256:3e2a5dc183fb87642435b4e2395b50771ef06e8970ddac3d0cd23236c0e99ef1 - 0.0% (332 Bytes)
# debian.sh --arch 'ppc64el' out/ 'bookworm' '@1736726400'
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; { echo 'Package: php*'; echo 'Pin: release *'; echo 'Pin-Priority: -1'; } > /etc/apt/preferences.d/no-debian-php # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHPIZE_DEPS=autoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends $PHPIZE_DEPS ca-certificates curl xz-utils ; rm -rf /var/lib/apt/lists/* # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHP_INI_DIR=/usr/local/etc/php
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; mkdir -p "$PHP_INI_DIR/conf.d"; [ ! -d /var/www/html ]; mkdir -p /var/www/html; chown www-data:www-data /var/www/html; chmod 1777 /var/www/html # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV APACHE_CONFDIR=/etc/apache2
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV APACHE_ENVVARS=/etc/apache2/envvars
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends apache2; rm -rf /var/lib/apt/lists/*; sed -ri 's/^export ([^=]+)=(.*)$/: ${\1:=\2}\nexport \1/' "$APACHE_ENVVARS"; . "$APACHE_ENVVARS"; for dir in "$APACHE_LOCK_DIR" "$APACHE_RUN_DIR" "$APACHE_LOG_DIR" "$APACHE_RUN_DIR/socks" ; do rm -rvf "$dir"; mkdir -p "$dir"; chown "$APACHE_RUN_USER:$APACHE_RUN_GROUP" "$dir"; chmod 1777 "$dir"; done; rm -rvf /var/www/html/*; ln -sfT /dev/stderr "$APACHE_LOG_DIR/error.log"; ln -sfT /dev/stdout "$APACHE_LOG_DIR/access.log"; ln -sfT /dev/stdout "$APACHE_LOG_DIR/other_vhosts_access.log"; chown -R --no-dereference "$APACHE_RUN_USER:$APACHE_RUN_GROUP" "$APACHE_LOG_DIR" # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c a2dismod mpm_event && a2enmod mpm_prefork # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c { echo '<FilesMatch \.php$>'; echo '\tSetHandler application/x-httpd-php'; echo '</FilesMatch>'; echo; echo 'DirectoryIndex disabled'; echo 'DirectoryIndex index.php index.html'; echo; echo '<Directory /var/www/>'; echo '\tOptions -Indexes'; echo '\tAllowOverride All'; echo '</Directory>'; } | tee "$APACHE_CONFDIR/conf-available/docker-php.conf" && a2enconf docker-php # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHP_CFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHP_CPPFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHP_LDFLAGS=-Wl,-O1 -pie
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV GPG_KEYS=1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHP_VERSION=8.3.16
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHP_URL=https://www.php.net/distributions/php-8.3.16.tar.xz PHP_ASC_URL=https://www.php.net/distributions/php-8.3.16.tar.xz.asc
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHP_SHA256=40d3b4e6cac33d3bcefe096d75a28d4fb4e3a9615eb20a4de55ba139fbfacdd5
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends gnupg; rm -rf /var/lib/apt/lists/*; mkdir -p /usr/src; cd /usr/src; curl -fsSL -o php.tar.xz "$PHP_URL"; if [ -n "$PHP_SHA256" ]; then echo "$PHP_SHA256 *php.tar.xz" | sha256sum -c -; fi; if [ -n "$PHP_ASC_URL" ]; then curl -fsSL -o php.tar.xz.asc "$PHP_ASC_URL"; export GNUPGHOME="$(mktemp -d)"; for key in $GPG_KEYS; do gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key"; done; gpg --batch --verify php.tar.xz.asc php.tar.xz; gpgconf --kill all; rm -rf "$GNUPGHOME"; fi; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark > /dev/null; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)COPY docker-php-source /usr/local/bin/ # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends apache2-dev libargon2-dev libcurl4-openssl-dev libonig-dev libreadline-dev libsodium-dev libsqlite3-dev libssl-dev libxml2-dev zlib1g-dev ; export CFLAGS="$PHP_CFLAGS" CPPFLAGS="$PHP_CPPFLAGS" LDFLAGS="$PHP_LDFLAGS" PHP_BUILD_PROVIDER='https://github.com/docker-library/php' PHP_UNAME='Linux - Docker' ; docker-php-source extract; cd /usr/src/php; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; if [ ! -d /usr/include/curl ]; then ln -sT "/usr/include/$debMultiarch/curl" /usr/local/include/curl; fi; ./configure --build="$gnuArch" --with-config-file-path="$PHP_INI_DIR" --with-config-file-scan-dir="$PHP_INI_DIR/conf.d" --enable-option-checking=fatal --with-mhash --with-pic --enable-mbstring --enable-mysqlnd --with-password-argon2 --with-sodium=shared --with-pdo-sqlite=/usr --with-sqlite3=/usr --with-curl --with-iconv --with-openssl --with-readline --with-zlib --disable-phpdbg --with-pear --with-libdir="lib/$debMultiarch" --disable-cgi --with-apxs2 ; make -j "$(nproc)"; find -type f -name '*.a' -delete; make install; find /usr/local -type f -perm '/0111' -exec sh -euxc ' strip --strip-all "$@" || : ' -- '{}' + ; make clean; cp -v php.ini-* "$PHP_INI_DIR/"; cd /; docker-php-source delete; apt-mark auto '.*' > /dev/null; [ -z "$savedAptMark" ] || apt-mark manual $savedAptMark; find /usr/local -type f -executable -exec ldd '{}' ';' | awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); printf "*%s\n", so }' | sort -u | xargs -r dpkg-query --search | cut -d: -f1 | sort -u | xargs -r apt-mark manual ; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; rm -rf /var/lib/apt/lists/*; pecl update-channels; rm -rf /tmp/pear ~/.pearrc; php --version # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c docker-php-ext-enable sodium # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-php-entrypoint"]
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGWINCH
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)COPY apache2-foreground /usr/local/bin/ # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)WORKDIR /var/www/html
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)EXPOSE map[80/tcp:{}]
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)CMD ["apache2-foreground"]
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; docker-php-ext-install -j "$(nproc)" bcmath opcache pdo_mysql mysqli # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c { echo 'opcache.memory_consumption=128'; echo 'opcache.interned_strings_buffer=8'; echo 'opcache.max_accelerated_files=4000'; echo 'opcache.revalidate_freq=2'; echo 'opcache.fast_shutdown=1'; } > /usr/local/etc/php/conf.d/opcache-recommended.ini # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c a2enmod rewrite expires # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ARG YOURLS_VERSION=1.9.2
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ARG YOURLS_SHA256=62a95ba766d62f3305d75944cbfe12d5a90c08c88fbf2f6e67150d36412b916f
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV YOURLS_VERSION=1.9.2
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV YOURLS_SHA256=62a95ba766d62f3305d75944cbfe12d5a90c08c88fbf2f6e67150d36412b916f
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN |2 YOURLS_VERSION=1.9.2 YOURLS_SHA256=62a95ba766d62f3305d75944cbfe12d5a90c08c88fbf2f6e67150d36412b916f /bin/sh -c set -eux; curl -o yourls.tar.gz -fsSL "https://github.com/YOURLS/YOURLS/archive/${YOURLS_VERSION}.tar.gz"; echo "$YOURLS_SHA256 *yourls.tar.gz" | sha256sum -c -; tar -xf yourls.tar.gz -C /usr/src/; mv "/usr/src/YOURLS-${YOURLS_VERSION}" /usr/src/yourls; rm yourls.tar.gz; chown -R www-data:www-data /usr/src/yourls # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)COPY --chown=www-data:www-data config-container.php /usr/src/yourls/user/ # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)COPY container-entrypoint.sh /usr/local/bin/ # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)COPY .htaccess /usr/src/yourls/ # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["container-entrypoint.sh"]
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)CMD ["apache2-foreground"]
2024-04-18 21:17:33 UTC
148 MB
/etc/apache2
APACHE_ENVVARS/etc/apache2/envvars
GPG_KEYS1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PHPIZE_DEPSautoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c
PHP_ASC_URLhttps://www.php.net/distributions/php-8.3.16.tar.xz.asc
PHP_CFLAGS-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
PHP_CPPFLAGS-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
PHP_INI_DIR/usr/local/etc/php
PHP_LDFLAGS-Wl,-O1 -pie
PHP_SHA25640d3b4e6cac33d3bcefe096d75a28d4fb4e3a9615eb20a4de55ba139fbfacdd5
PHP_URLhttps://www.php.net/distributions/php-8.3.16.tar.xz
PHP_VERSION8.3.16
YOURLS_SHA25662a95ba766d62f3305d75944cbfe12d5a90c08c88fbf2f6e67150d36412b916f
YOURLS_VERSION1.9.2
[#000] sha256:310acd011b0fc666229ef81942693adcf97c49991b6d41b858d0bb251bfe23d5 - 17.29% (25.6 MB)
[#001] sha256:3b2442a26bea505335348a0d08e61a74e35c2278c384c66431bde7723b1ce29c - 0.0% (225 Bytes)
[#002] sha256:9dc15b0da0c124fd5b5a9d382eb8750e6bb43586b999d667195889264df87b02 - 52.02% (77.1 MB)
[#003] sha256:953bd6ba73d5e08d48c9205fe5789f1ec849d7e8a73c0846d1d65e45f1d01cdc - 0.0% (223 Bytes)
[#004] sha256:8c7e5c8b271d036b27b48632ce1e09af8fcf7d97ec73b249f216b5136ef28afb - 12.81% (19 MB)
[#005] sha256:5d71116c82f42e5ab5f795e3390c9ff08adc9fc7271138d9b77b167249c32ede - 0.0% (436 Bytes)
[#006] sha256:8fa4930afe18cefc216bb1d597a5a96e9d314d748040783a791393851184a3cc - 0.0% (487 Bytes)
[#007] sha256:bc43f71e06a95fd968cf978cffaa83131045291080e014ca59f2020cab325dfd - 8.16% (12.1 MB)
[#008] sha256:a82bbeef826dc4143d568ae85764bb4cc8a58285b58f02b04b1fe11cf07c830b - 0.0% (486 Bytes)
[#009] sha256:785fc5b51ccba70a4044d873c464bb671328a800f11f87b4cbc51330ad0df793 - 7.0% (10.4 MB)
[#010] sha256:5b2c40f8ae87c9daf35e210dc13c8613b3c6ffcbd17f9b574feead69f9aee039 - 0.0% (2.4 KB)
[#011] sha256:5ea110e325b656377c3509e075958be17f445edcbca95217716bbc0d237aa77c - 0.0% (248 Bytes)
[#012] sha256:8ea9b4a6f17d32ef4ff7a13322a6c275c6ddaab9f0ac0c2b96e56cabcd839e73 - 0.0% (892 Bytes)
[#013] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)
[#014] sha256:7b330f5443ee703559ce8d93a6b30747c55606f900d41d70d7bb7da4895048df - 0.1% (158 KB)
[#015] sha256:125a7362c7fd8e593df2684bb99e56b49149e5dc150410e89fdfe89d85566fa4 - 0.0% (328 Bytes)
[#016] sha256:f2c1b79a91984156bd7aa097e84f35127a69c4735844c41daa115a376c4c9268 - 0.0% (346 Bytes)
[#017] sha256:506690d91ce1209258ef2e19c7d7429deb557f5831b7405ad75b5deae0794985 - 2.62% (3.88 MB)
[#018] sha256:86b4da692c0e9287545e0008d665c5f648cd0e1d4027a8537499daa6e848263c - 0.0% (2 KB)
[#019] sha256:0a13fc9127b869c4add549feb6b9a83f2d36e436fc3590cdc2de9fd792576236 - 0.0% (1.65 KB)
[#020] sha256:393f7908dab12a03b08874b900fdda7bac27f8767cae3d2f2de0812a51ad3405 - 0.0% (330 Bytes)
# debian.sh --arch 's390x' out/ 'bookworm' '@1736726400'
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; { echo 'Package: php*'; echo 'Pin: release *'; echo 'Pin-Priority: -1'; } > /etc/apt/preferences.d/no-debian-php # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHPIZE_DEPS=autoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends $PHPIZE_DEPS ca-certificates curl xz-utils ; rm -rf /var/lib/apt/lists/* # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHP_INI_DIR=/usr/local/etc/php
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; mkdir -p "$PHP_INI_DIR/conf.d"; [ ! -d /var/www/html ]; mkdir -p /var/www/html; chown www-data:www-data /var/www/html; chmod 1777 /var/www/html # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV APACHE_CONFDIR=/etc/apache2
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV APACHE_ENVVARS=/etc/apache2/envvars
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends apache2; rm -rf /var/lib/apt/lists/*; sed -ri 's/^export ([^=]+)=(.*)$/: ${\1:=\2}\nexport \1/' "$APACHE_ENVVARS"; . "$APACHE_ENVVARS"; for dir in "$APACHE_LOCK_DIR" "$APACHE_RUN_DIR" "$APACHE_LOG_DIR" "$APACHE_RUN_DIR/socks" ; do rm -rvf "$dir"; mkdir -p "$dir"; chown "$APACHE_RUN_USER:$APACHE_RUN_GROUP" "$dir"; chmod 1777 "$dir"; done; rm -rvf /var/www/html/*; ln -sfT /dev/stderr "$APACHE_LOG_DIR/error.log"; ln -sfT /dev/stdout "$APACHE_LOG_DIR/access.log"; ln -sfT /dev/stdout "$APACHE_LOG_DIR/other_vhosts_access.log"; chown -R --no-dereference "$APACHE_RUN_USER:$APACHE_RUN_GROUP" "$APACHE_LOG_DIR" # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c a2dismod mpm_event && a2enmod mpm_prefork # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c { echo '<FilesMatch \.php$>'; echo '\tSetHandler application/x-httpd-php'; echo '</FilesMatch>'; echo; echo 'DirectoryIndex disabled'; echo 'DirectoryIndex index.php index.html'; echo; echo '<Directory /var/www/>'; echo '\tOptions -Indexes'; echo '\tAllowOverride All'; echo '</Directory>'; } | tee "$APACHE_CONFDIR/conf-available/docker-php.conf" && a2enconf docker-php # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHP_CFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHP_CPPFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHP_LDFLAGS=-Wl,-O1 -pie
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV GPG_KEYS=1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHP_VERSION=8.3.16
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHP_URL=https://www.php.net/distributions/php-8.3.16.tar.xz PHP_ASC_URL=https://www.php.net/distributions/php-8.3.16.tar.xz.asc
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV PHP_SHA256=40d3b4e6cac33d3bcefe096d75a28d4fb4e3a9615eb20a4de55ba139fbfacdd5
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends gnupg; rm -rf /var/lib/apt/lists/*; mkdir -p /usr/src; cd /usr/src; curl -fsSL -o php.tar.xz "$PHP_URL"; if [ -n "$PHP_SHA256" ]; then echo "$PHP_SHA256 *php.tar.xz" | sha256sum -c -; fi; if [ -n "$PHP_ASC_URL" ]; then curl -fsSL -o php.tar.xz.asc "$PHP_ASC_URL"; export GNUPGHOME="$(mktemp -d)"; for key in $GPG_KEYS; do gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key"; done; gpg --batch --verify php.tar.xz.asc php.tar.xz; gpgconf --kill all; rm -rf "$GNUPGHOME"; fi; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark > /dev/null; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)COPY docker-php-source /usr/local/bin/ # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends apache2-dev libargon2-dev libcurl4-openssl-dev libonig-dev libreadline-dev libsodium-dev libsqlite3-dev libssl-dev libxml2-dev zlib1g-dev ; export CFLAGS="$PHP_CFLAGS" CPPFLAGS="$PHP_CPPFLAGS" LDFLAGS="$PHP_LDFLAGS" PHP_BUILD_PROVIDER='https://github.com/docker-library/php' PHP_UNAME='Linux - Docker' ; docker-php-source extract; cd /usr/src/php; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; if [ ! -d /usr/include/curl ]; then ln -sT "/usr/include/$debMultiarch/curl" /usr/local/include/curl; fi; ./configure --build="$gnuArch" --with-config-file-path="$PHP_INI_DIR" --with-config-file-scan-dir="$PHP_INI_DIR/conf.d" --enable-option-checking=fatal --with-mhash --with-pic --enable-mbstring --enable-mysqlnd --with-password-argon2 --with-sodium=shared --with-pdo-sqlite=/usr --with-sqlite3=/usr --with-curl --with-iconv --with-openssl --with-readline --with-zlib --disable-phpdbg --with-pear --with-libdir="lib/$debMultiarch" --disable-cgi --with-apxs2 ; make -j "$(nproc)"; find -type f -name '*.a' -delete; make install; find /usr/local -type f -perm '/0111' -exec sh -euxc ' strip --strip-all "$@" || : ' -- '{}' + ; make clean; cp -v php.ini-* "$PHP_INI_DIR/"; cd /; docker-php-source delete; apt-mark auto '.*' > /dev/null; [ -z "$savedAptMark" ] || apt-mark manual $savedAptMark; find /usr/local -type f -executable -exec ldd '{}' ';' | awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); printf "*%s\n", so }' | sort -u | xargs -r dpkg-query --search | cut -d: -f1 | sort -u | xargs -r apt-mark manual ; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; rm -rf /var/lib/apt/lists/*; pecl update-channels; rm -rf /tmp/pear ~/.pearrc; php --version # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c docker-php-ext-enable sodium # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-php-entrypoint"]
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGWINCH
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)COPY apache2-foreground /usr/local/bin/ # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)WORKDIR /var/www/html
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)EXPOSE map[80/tcp:{}]
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)CMD ["apache2-foreground"]
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; docker-php-ext-install -j "$(nproc)" bcmath opcache pdo_mysql mysqli # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c { echo 'opcache.memory_consumption=128'; echo 'opcache.interned_strings_buffer=8'; echo 'opcache.max_accelerated_files=4000'; echo 'opcache.revalidate_freq=2'; echo 'opcache.fast_shutdown=1'; } > /usr/local/etc/php/conf.d/opcache-recommended.ini # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c a2enmod rewrite expires # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ARG YOURLS_VERSION=1.9.2
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ARG YOURLS_SHA256=62a95ba766d62f3305d75944cbfe12d5a90c08c88fbf2f6e67150d36412b916f
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV YOURLS_VERSION=1.9.2
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENV YOURLS_SHA256=62a95ba766d62f3305d75944cbfe12d5a90c08c88fbf2f6e67150d36412b916f
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)RUN |2 YOURLS_VERSION=1.9.2 YOURLS_SHA256=62a95ba766d62f3305d75944cbfe12d5a90c08c88fbf2f6e67150d36412b916f /bin/sh -c set -eux; curl -o yourls.tar.gz -fsSL "https://github.com/YOURLS/YOURLS/archive/${YOURLS_VERSION}.tar.gz"; echo "$YOURLS_SHA256 *yourls.tar.gz" | sha256sum -c -; tar -xf yourls.tar.gz -C /usr/src/; mv "/usr/src/YOURLS-${YOURLS_VERSION}" /usr/src/yourls; rm yourls.tar.gz; chown -R www-data:www-data /usr/src/yourls # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)COPY --chown=www-data:www-data config-container.php /usr/src/yourls/user/ # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)COPY container-entrypoint.sh /usr/local/bin/ # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)COPY .htaccess /usr/src/yourls/ # buildkit
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["container-entrypoint.sh"]
2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)CMD ["apache2-foreground"]
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.