Namespace
library
Image / Tag
yourls:1
Content Digest
sha256:1d6739f51f42b2d6ec006881fd516d47759f18bc4b303716d921d4c832a69835
Details
Created

2024-04-18 21:17:33 UTC

Size

173 MB

Content Digest
Environment
APACHE_CONFDIR

/etc/apache2

APACHE_ENVVARS

/etc/apache2/envvars

GPG_KEYS

1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA

PATH

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

PHPIZE_DEPS

autoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c

PHP_ASC_URL

https://www.php.net/distributions/php-8.3.13.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_SHA256

89adb978cca209124fe53fd6327bc4966ca21213a7fa2e9504f854e340873018

PHP_URL

https://www.php.net/distributions/php-8.3.13.tar.xz

PHP_VERSION

8.3.13

YOURLS_SHA256

62a95ba766d62f3305d75944cbfe12d5a90c08c88fbf2f6e67150d36412b916f

YOURLS_VERSION

1.9.2


Layers

[#000] sha256:f1bcef69cca27061b771e6bb01a051f6879c730ec30ed4661fef463e7d798d9c - 16.62% (28.7 MB)

[#001] sha256:329eb31a4f93e9d41ddca528693079d4cac38e0e0cd7acbbf24dbaad04c807e9 - 0.0% (224 Bytes)

[#002] sha256:00991a5c316faa9083955727f89b3e04028027ea095f4ebc8fe11c24701a97a5 - 55.97% (96.8 MB)

[#003] sha256:5479896864efa784a35768f05f72ff5585dc52a8377de29499449cbfb93d21b3 - 0.0% (222 Bytes)

[#004] sha256:cb2640e1a07ee466e0bec0bd6b84574579a011598fea39c2b18beb22edef0bbf - 11.38% (19.7 MB)

[#005] sha256:ee53c118cbbb1b6e4c239e0ea5db3ae393013c5d5e24367a20635acd0b7056ae - 0.0% (427 Bytes)

[#006] sha256:5d0e769040ccb1546ac0d4ed3ad58ed10b689426fbff5aee2e0dd81cf1be3d27 - 0.0% (485 Bytes)

[#007] sha256:7239b6469dc8348d269f3caefba6ac2834c0bf5e9e3e1dd1409d160af8979d0b - 6.95% (12 MB)

[#008] sha256:3e49c86746ac71d54d5b69263b64615f0f52f3f5a92a9518a6d9cf39118f2a04 - 0.0% (487 Bytes)

[#009] sha256:3cd46df7b7a27b3a684a3fa865fd47872c6cb79ae483e1e3403eaa666b2c624d - 6.54% (11.3 MB)

[#010] sha256:1c8bf4f8e802f4327016a09002d598e17cb81c8dd98f8134854c2b43f9bb82ae - 0.0% (2.4 KB)

[#011] sha256:ceac382e0107f09c9d4f4f29c19f2ec27777333386b4927599ca03b496829569 - 0.0% (244 Bytes)

[#012] sha256:d69d6b970e9e74cad9e394a1b0e7707cf00b0673458fc3da783321cdb83b4753 - 0.0% (892 Bytes)

[#013] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)

[#014] sha256:d303110dfd947e970a78c6a47eeb5d45533fea1641095e065a9a66f618e5fe48 - 0.28% (495 KB)

[#015] sha256:0625c01bede70378632decb2d123d13c2eeee82b1be915a18b9b7a20ef717990 - 0.0% (323 Bytes)

[#016] sha256:bc000828934bfb35e5290a7a78b31a114632d91ec57479e7f46eb8c7991cf015 - 0.0% (339 Bytes)

[#017] sha256:15978a06782f2901406109f8b8e173f473a4fcf3ebba4ae5ef96f944a4295ff6 - 2.25% (3.88 MB)

[#018] sha256:e5000aa3f7086c0b89a5b45f8c3fa0ece05692f8234987d32e32cd1cae946ebb - 0.0% (2 KB)

[#019] sha256:bc565e0bae2cf78a3da98ef2ba1b70675a037066318e81b08f6987e12bd79891 - 0.0% (1.65 KB)

[#020] sha256:672f1f8098e9c7f39ac409179d703c5e801946888bab34305c9436c010d06e7e - 0.0% (330 Bytes)


History
2024-04-18 21:17:33 UTC

/bin/sh -c #(nop) ADD file:9e1e244025374c1ce772075845b1331852635a8eb7d29e206c37cd9de6ad8617 in /

2024-04-18 21:17:33 UTC

/bin/sh -c #(nop) CMD ["bash"]

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.13

2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)

ENV PHP_URL=https://www.php.net/distributions/php-8.3.13.tar.xz PHP_ASC_URL=https://www.php.net/distributions/php-8.3.13.tar.xz.asc

2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)

ENV PHP_SHA256=89adb978cca209124fe53fd6327bc4966ca21213a7fa2e9504f854e340873018

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"]

Details
Created

2024-04-18 21:17:33 UTC

Size

174 MB

Content Digest
Environment
APACHE_CONFDIR

/etc/apache2

APACHE_ENVVARS

/etc/apache2/envvars

GPG_KEYS

1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA

PATH

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

PHPIZE_DEPS

autoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c

PHP_ASC_URL

https://www.php.net/distributions/php-8.3.13.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_SHA256

89adb978cca209124fe53fd6327bc4966ca21213a7fa2e9504f854e340873018

PHP_URL

https://www.php.net/distributions/php-8.3.13.tar.xz

PHP_VERSION

8.3.13

YOURLS_SHA256

62a95ba766d62f3305d75944cbfe12d5a90c08c88fbf2f6e67150d36412b916f

YOURLS_VERSION

1.9.2


Layers

[#000] sha256:a480a496ba95a197d587aa1d9e0f545ca7dbd40495a4715342228db62b67c4ba - 15.96% (27.8 MB)

[#001] sha256:64cfff3ac3828405d24e930ee4fd9bef0d039dab5acf83a12ae5540389b5b716 - 0.0% (224 Bytes)

[#002] sha256:6c8db7ba2fb3103d018fb5dcfb21aca235f7e95c85bfd9ce83c3ee381c4521a4 - 57.19% (99.5 MB)

[#003] sha256:afd6dcf9c5c42a814580667cac758dcfb9b7f7a4049ab7d76fbc5a0afae9b6af - 0.0% (223 Bytes)

[#004] sha256:e2133690866dea0b1ccd88420437854da3432c3d5cc74d354272d3fee4f7ac7c - 11.03% (19.2 MB)

[#005] sha256:eab50bae3de53daf73b7bde21369f9705e34ac11afece0cd460eef52720e3d42 - 0.0% (430 Bytes)

[#006] sha256:d9c650d175379c75354d46cfacfbc2c76d5ca7bd13d65ededd1bed51f0f33f80 - 0.0% (483 Bytes)

[#007] sha256:e09dc258c3220d1bfef062c2e0ac519b744d8822d7176512af7833d5983ac0c3 - 6.91% (12 MB)

[#008] sha256:b9dd36c07ca0c6e652164e5b0b5b083506bb351b45ffd5b39a46b0165df5c76b - 0.0% (488 Bytes)

[#009] sha256:e299a01471fdbc8d7486de408362bfd30e03503dd7e40b312a00f5e1c140ee50 - 6.38% (11.1 MB)

[#010] sha256:a4e31c3cda9f13cb49b553342afd57c0699028eb2fe3e8f307ab6b40d91afe5b - 0.0% (2.39 KB)

[#011] sha256:d404a37f1edeb502368a756fb1b451ab70e9fed13f32c9a2ef0d63982cb06ebf - 0.0% (246 Bytes)

[#012] sha256:8c2340e96d8144dfa165f7523c8bbbe3210ab56a8d6860f5d194238c95b1545f - 0.0% (890 Bytes)

[#013] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)

[#014] sha256:4618b16a8bef7e0b212afb33887410b4547494d30b94538f2068ae1f74ec1a66 - 0.29% (515 KB)

[#015] sha256:4b40fb72ca1eb6c11a8a14e459d526439381ca70df46a277e26f91502fc93751 - 0.0% (325 Bytes)

[#016] sha256:262dfbf03c2be14358790e18b7654e467f0e182eb36ab885589c84eb743be987 - 0.0% (345 Bytes)

[#017] sha256:8c4f4b6d565a59a3219c35f9adb240d3efd48058759d6db434b64922d24a6955 - 2.23% (3.88 MB)

[#018] sha256:f08e3d09dbbd37cad56ec4dd43bb5fce3f6e2c8fa2a48bb202cd9d145e82f1be - 0.0% (2 KB)

[#019] sha256:13b326fa86d92bb71e040f5d988a1a8926932c7153ccfebf45c2ea5a6cc51f8d - 0.0% (1.65 KB)

[#020] sha256:d05b3da49f2c5b5f79e4a602c5fbf2981f399ad90eedcad38953805240324923 - 0.0% (331 Bytes)


History
2024-04-18 21:17:33 UTC

/bin/sh -c #(nop) ADD file:90b9dd8f12120e8b2cd3ece45fcbe8af67e40565e2032a40f64bd921c43e2ce7 in /

2024-04-18 21:17:33 UTC

/bin/sh -c #(nop) CMD ["bash"]

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.13

2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)

ENV PHP_URL=https://www.php.net/distributions/php-8.3.13.tar.xz PHP_ASC_URL=https://www.php.net/distributions/php-8.3.13.tar.xz.asc

2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)

ENV PHP_SHA256=89adb978cca209124fe53fd6327bc4966ca21213a7fa2e9504f854e340873018

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"]

Details
Created

2024-04-18 21:17:33 UTC

Size

149 MB

Content Digest
Environment
APACHE_CONFDIR

/etc/apache2

APACHE_ENVVARS

/etc/apache2/envvars

GPG_KEYS

1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA

PATH

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

PHPIZE_DEPS

autoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c

PHP_ASC_URL

https://www.php.net/distributions/php-8.3.13.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_SHA256

89adb978cca209124fe53fd6327bc4966ca21213a7fa2e9504f854e340873018

PHP_URL

https://www.php.net/distributions/php-8.3.13.tar.xz

PHP_VERSION

8.3.13

YOURLS_SHA256

62a95ba766d62f3305d75944cbfe12d5a90c08c88fbf2f6e67150d36412b916f

YOURLS_VERSION

1.9.2


Layers

[#000] sha256:e51d4479d9f15eaafec663087c05baede0a0724dc30787f7912ade3b686f46b1 - 17.26% (25.6 MB)

[#001] sha256:255cbfa5cbebed9fd7c8f34077debdb42c371f3e9ff0874a76eeecaeea391fff - 0.0% (225 Bytes)

[#002] sha256:59d7de8ee38de821e7a2d49fddb538f63c035fac91b992f00ac7bf6b39d25964 - 52.64% (78.2 MB)

[#003] sha256:310b072383a75b21caa7c43d077f84a4e9c721b6f8b19ab0e9df353f53ab84ca - 0.0% (224 Bytes)

[#004] sha256:39e85e77875bb273fe263ad3f33329ff4aec330e79ddf1f8063eaa30810787f5 - 12.47% (18.5 MB)

[#005] sha256:8aa4c981efad954cf32a3908ca82953214cd6071fec1c979b34181c63546ebf8 - 0.0% (433 Bytes)

[#006] sha256:8b9718dbae37263d9bc8d722584725ce8dcc3e716cb937ff6b85801f56374c88 - 0.0% (485 Bytes)

[#007] sha256:16b1a29cc545983561254f8ba18abc141ea2e6d3eeaf8ce5ca57a237cc3c17b7 - 8.1% (12 MB)

[#008] sha256:ec18a82a7a7255efb1bfe6d44b6f1a80567419deebc156f9b8b44990304bce43 - 0.0% (484 Bytes)

[#009] sha256:74cdef8fb29609e6866d9d5885a6101b4fde850704efdacd700c7f96b3b974f1 - 6.81% (10.1 MB)

[#010] sha256:3d81c7889ace79e09c5dde8016ccd6855dc652439695f3ea4e679f8b722b1960 - 0.0% (2.4 KB)

[#011] sha256:a39b8355d91777cb6df3f75a06c9e30bfcd4870f76dc5b1e9dab30f91f6e4479 - 0.0% (245 Bytes)

[#012] sha256:d8ce16f950f9cbacee6d8daae67bfced71203093c06cd1e740374b4290ce1c03 - 0.0% (889 Bytes)

[#013] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)

[#014] sha256:34b245d7b3fa741aceaca93eb255efee4caca2f89e6b8efae2f574843b5a8f29 - 0.1% (151 KB)

[#015] sha256:7c382514cf00f19d51c11ebaff378a6f7d79b7d1ece16c444fb1c943dd0741dd - 0.0% (324 Bytes)

[#016] sha256:4a905cf73dd0455de675ec3b80955d000f9fe90813ea7095e123d9501e02b3d8 - 0.0% (343 Bytes)

[#017] sha256:a6f2230cb855e9bf47eb27d9204081f7a749530c49288b46be774c2ce94d2f6e - 2.62% (3.88 MB)

[#018] sha256:f60e0b5badd403890edda91828b1796c6c3ac85f7af81d804c552903527b136a - 0.0% (2 KB)

[#019] sha256:aacc686a9b13b894b6c87d68cfec5d9a03cf25e9ed14c3c44130f7971bb32f93 - 0.0% (1.65 KB)

[#020] sha256:f6725977f118b5a0088af3491d9aa4af6f1c0e06c5e4035b08a19f13afb40145 - 0.0% (332 Bytes)


History
2024-04-18 21:17:33 UTC

/bin/sh -c #(nop) ADD file:c8ec8d65b2f61866a2c6085ed61e936733bc484abeeba1b91d12b9f6a97e456b in /

2024-04-18 21:17:33 UTC

/bin/sh -c #(nop) CMD ["bash"]

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.13

2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)

ENV PHP_URL=https://www.php.net/distributions/php-8.3.13.tar.xz PHP_ASC_URL=https://www.php.net/distributions/php-8.3.13.tar.xz.asc

2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)

ENV PHP_SHA256=89adb978cca209124fe53fd6327bc4966ca21213a7fa2e9504f854e340873018

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"]

Details
Created

2024-04-18 21:17:33 UTC

Size

140 MB

Content Digest
Environment
APACHE_CONFDIR

/etc/apache2

APACHE_ENVVARS

/etc/apache2/envvars

GPG_KEYS

1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA

PATH

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

PHPIZE_DEPS

autoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c

PHP_ASC_URL

https://www.php.net/distributions/php-8.3.13.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_SHA256

89adb978cca209124fe53fd6327bc4966ca21213a7fa2e9504f854e340873018

PHP_URL

https://www.php.net/distributions/php-8.3.13.tar.xz

PHP_VERSION

8.3.13

YOURLS_SHA256

62a95ba766d62f3305d75944cbfe12d5a90c08c88fbf2f6e67150d36412b916f

YOURLS_VERSION

1.9.2


Layers

[#000] sha256:d6319e551f4eae5cadf245338228c7b7cbad94a77c481a88ccbffef7b89f0aee - 16.86% (23.6 MB)

[#001] sha256:6bcfcb380cfbd1992d2f15637ef37999cbc4f9934874d34a17b217098fa8c2f4 - 0.0% (226 Bytes)

[#002] sha256:63df587ed65ffaf4f0e56a3ade450a0c2f4bd0ec52cb90e0193d9ec9a394a939 - 51.95% (72.6 MB)

[#003] sha256:c7f4e906cd29de73704abed83d01761162847c368f1a7c597dc584fd985a75c2 - 0.0% (223 Bytes)

[#004] sha256:9b42cf4a791cfd52dd382314b8b0f4cbf7a46e61d6c6c664a4299bfc5656b5a8 - 12.86% (18 MB)

[#005] sha256:95bf1529cc0e5c50582fc58382ef311e785b9a8a182db98e8831efef019fe199 - 0.0% (435 Bytes)

[#006] sha256:7fca32620845d0574b19199a5b046dcb2260722f191ef3f55c582ed51287e788 - 0.0% (487 Bytes)

[#007] sha256:0630ce9e3aaa266d2df0b1e9e5009773fc344179fcbbdc3c987ab82450387b02 - 8.6% (12 MB)

[#008] sha256:e3bd15aa423dbdcbbbd98dadb62b179877c124f11bc9bb03222d8995f3669280 - 0.0% (486 Bytes)

[#009] sha256:627abc4c4bccfad0a0915bef0ba0d58524652cd1fcd05584cd49db7964a1a132 - 6.84% (9.57 MB)

[#010] sha256:a3e56d05bd57bac3d4ab16d5e10722de498ef0bca97cc0669f14df01d2392354 - 0.0% (2.4 KB)

[#011] sha256:cdf8b59e4942575a63273f5e258bdd03dfb1a7963a2088c10ca1799c1234867f - 0.0% (246 Bytes)

[#012] sha256:10bacf6d5a906379e0013ea3f46279d0cede9b58e86d920c1e03391a14abc2e2 - 0.0% (893 Bytes)

[#013] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)

[#014] sha256:a56550fa560351e7122a3b70882e3b2147b2022b9040b1892815909fd9a6becc - 0.1% (138 KB)

[#015] sha256:3f8e821732843b7b15f58a18b2f671b543f8565c0bc65248e68c3467ba1ca6f2 - 0.0% (328 Bytes)

[#016] sha256:f99c76647f5d7023aaa65dfa64eed3a55d370726f4a305cf6e13853a3707d963 - 0.0% (348 Bytes)

[#017] sha256:19b1905240edba658b79fb75bf5d126c2ec9b953a3d8c4099da3a9085b9a543b - 2.78% (3.88 MB)

[#018] sha256:320d7da221383e028580bd1dc2523080125abe627e5b256480f7978f798d184a - 0.0% (2 KB)

[#019] sha256:9601d9477a432ee215e934f8791b4b7d74807fbc207704ea17a6b2ede708384e - 0.0% (1.65 KB)

[#020] sha256:65ab3655f8bee361e1c6ad0706bc8325d94672e21dbdd56b632549d4847b5632 - 0.0% (328 Bytes)


History
2024-04-18 21:17:33 UTC

/bin/sh -c #(nop) ADD file:e76e8ba7ebca0b1dcaec16ad1e863ab59c7e155f0b95ba46f5543e418a904b35 in /

2024-04-18 21:17:33 UTC

/bin/sh -c #(nop) CMD ["bash"]

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.13

2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)

ENV PHP_URL=https://www.php.net/distributions/php-8.3.13.tar.xz PHP_ASC_URL=https://www.php.net/distributions/php-8.3.13.tar.xz.asc

2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)

ENV PHP_SHA256=89adb978cca209124fe53fd6327bc4966ca21213a7fa2e9504f854e340873018

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"]

Details
Created

2024-04-18 21:17:33 UTC

Size

168 MB

Content Digest
Environment
APACHE_CONFDIR

/etc/apache2

APACHE_ENVVARS

/etc/apache2/envvars

GPG_KEYS

1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA

PATH

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

PHPIZE_DEPS

autoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c

PHP_ASC_URL

https://www.php.net/distributions/php-8.3.13.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_SHA256

89adb978cca209124fe53fd6327bc4966ca21213a7fa2e9504f854e340873018

PHP_URL

https://www.php.net/distributions/php-8.3.13.tar.xz

PHP_VERSION

8.3.13

YOURLS_SHA256

62a95ba766d62f3305d75944cbfe12d5a90c08c88fbf2f6e67150d36412b916f

YOURLS_VERSION

1.9.2


Layers

[#000] sha256:83d624c4be2db5b81ae220b6b10cbc9a559d5800fd32556f4020727098f71ed0 - 16.52% (27.8 MB)

[#001] sha256:77074644eeb7cdf46475293fba2c88bbb04a0d4639f8fe1072fb11d7a6434fb4 - 0.0% (226 Bytes)

[#002] sha256:1844b6c933ada1472f6f12b5dab5dbb974ff7c8299bc6ba9312586feada41bf1 - 55.59% (93.6 MB)

[#003] sha256:4d350ecad63f801fc61e8fb71f1da4b5052fb1caae60ea46e1ab87d2c3cd4ae7 - 0.0% (223 Bytes)

[#004] sha256:b420f8be6082fd2562efa3ab5c5be52021e75fc1ad60aad50264cc70250ea8e6 - 11.4% (19.2 MB)

[#005] sha256:10bb8443b199e35f18d67d4df1195046c90b460eafe7450bdddc9b0b0b45531b - 0.0% (430 Bytes)

[#006] sha256:65caf96ff18c89bce6dd79217c16e38c511df6d517eb60ca2ec174387a81a432 - 0.0% (485 Bytes)

[#007] sha256:20f5f021e5979c9f49d4bfc61d4b51dff54ffa783b2a965cb659aa81fbf0b65a - 7.14% (12 MB)

[#008] sha256:1387efb6f59c9eca2d22debdcb1eb527f52da30bd703bb31e516b0850e3e4bf3 - 0.0% (487 Bytes)

[#009] sha256:d5ea53faaa910f15c25f22f658929e0b6444fc6450881a22409b75e1efe756a7 - 6.59% (11.1 MB)

[#010] sha256:a50f3506085861dff9ffcf6f69e40ed438af7618d5f6bfd400e9e8eea6144bf4 - 0.0% (2.4 KB)

[#011] sha256:23f407f6179bd45372e92c2f843c93d72cf1dfde5c810b2559c8959ab87cd20a - 0.0% (244 Bytes)

[#012] sha256:2cc3d61d383c6ba372099294cd437adefb4fa757547c04ecb1c7aac947b99c87 - 0.0% (890 Bytes)

[#013] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)

[#014] sha256:dd96e7a666afbefe756c6919e14ada30d6b08912bd244562ed1b312fe0e38981 - 0.45% (776 KB)

[#015] sha256:c185fae145adeff1baccf0686e96dd0a0338818e7e43a9ad4174ce84b7dcf008 - 0.0% (322 Bytes)

[#016] sha256:972126b3a1cdcc49a945960e60cecdbcb37ab1c0ff054840158c4ecec7b899bb - 0.0% (343 Bytes)

[#017] sha256:75220fc2d3983d850e6305c789c4b82857d95fef2517da546ed2073ab28e58a3 - 2.31% (3.88 MB)

[#018] sha256:bdc9e53c7599c64e3bf8a4e0c5346c395a12b9e1e56e8c8ce06cb35ef2fc23cd - 0.0% (2 KB)

[#019] sha256:670dbc3afc3907e3af82bee3b609d71397be02744c1f8c00b44f6220a7a9d044 - 0.0% (1.65 KB)

[#020] sha256:1b584eb38565868e18f3feb283bae63f5bd8da4cd1f78bfc36aaa53e06ae03f7 - 0.0% (328 Bytes)


History
2024-04-18 21:17:33 UTC

/bin/sh -c #(nop) ADD file:702193928cded0bcec5edbf4a5660961e7caef8c9d9cafea3337b7f6720c4464 in /

2024-04-18 21:17:33 UTC

/bin/sh -c #(nop) CMD ["bash"]

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.13

2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)

ENV PHP_URL=https://www.php.net/distributions/php-8.3.13.tar.xz PHP_ASC_URL=https://www.php.net/distributions/php-8.3.13.tar.xz.asc

2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)

ENV PHP_SHA256=89adb978cca209124fe53fd6327bc4966ca21213a7fa2e9504f854e340873018

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"]

Details
Created

2024-04-18 21:17:33 UTC

Size

150 MB

Content Digest
Environment
APACHE_CONFDIR

/etc/apache2

APACHE_ENVVARS

/etc/apache2/envvars

GPG_KEYS

1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA

PATH

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

PHPIZE_DEPS

autoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c

PHP_ASC_URL

https://www.php.net/distributions/php-8.3.13.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_SHA256

89adb978cca209124fe53fd6327bc4966ca21213a7fa2e9504f854e340873018

PHP_URL

https://www.php.net/distributions/php-8.3.13.tar.xz

PHP_VERSION

8.3.13

YOURLS_SHA256

62a95ba766d62f3305d75944cbfe12d5a90c08c88fbf2f6e67150d36412b916f

YOURLS_VERSION

1.9.2


Layers

[#000] sha256:8f9d02f0305fc460f51690aebcb328c22e13a197228c0910e24b813db943a15b - 18.5% (27.8 MB)

[#001] sha256:75971b85139441fe144cb93dcb63eda60c20b8b82bcc4cc161a345662be6e248 - 0.0% (225 Bytes)

[#002] sha256:ae54a087649536e7da942bb23de64ede6ba55259b78328b804de7695cf731369 - 51.24% (76.9 MB)

[#003] sha256:cf9d1ae69be6bff3b5f486ce83dc2a01329491bc64c77e183361743695495d62 - 0.0% (224 Bytes)

[#004] sha256:9805e4def2c522f97a948ff0a106d6753819d71887cabeca9b1ab8355a0ec3f5 - 12.75% (19.1 MB)

[#005] sha256:3f108a36b91c4b30f45222f94048f45b028abb9cbd4872f312cc17b7ebdf9e0a - 0.0% (436 Bytes)

[#006] sha256:badc8de30d0eaabcca7399faec8b52772f4a699389c0f6ee67d901929b205efb - 0.0% (487 Bytes)

[#007] sha256:21d400c1cac071f6746ef45b67a5a977e40c885b3cb960647f01d37f2a19bcdf - 8.01% (12 MB)

[#008] sha256:9c9454b9633f46c864059147bcb08f5762c5e87395c30bc281e9621e28907b0d - 0.0% (485 Bytes)

[#009] sha256:98c8f56a3eb0c8180952ec7904eb7f44d2af333abc7242bf73d814bfed601a4f - 6.81% (10.2 MB)

[#010] sha256:e56e98166416195e72f7b4873364c2f4e2d33158814ae1284b4f39f124a8f858 - 0.0% (2.4 KB)

[#011] sha256:d6a6c7e9e96a53de414e24a1cfbdd3a2383547edce544f88fa8a74baec13d64d - 0.0% (247 Bytes)

[#012] sha256:71f5c8ff575e778c3693662175f2c1e4e7b39077eb37f369f5e0e01b76e26e90 - 0.0% (890 Bytes)

[#013] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)

[#014] sha256:30c92e8cf9e425e609b95a6c0f25be0714c99adc327fadf516d0b47240f205a2 - 0.1% (149 KB)

[#015] sha256:47a9b8a4fccb1b728a2eac6f0d7e793ed4af04471d88e153fabfd9938c510e2f - 0.0% (326 Bytes)

[#016] sha256:1968530e27c7f2358babaf3df1f76ee4ba3fa8f8387bd2c145c759a58a4d7a87 - 0.0% (347 Bytes)

[#017] sha256:5a99875f9d43025e4ebd7ceafb22b89ccba3e596601cc103208ac4a4a08eec4d - 2.59% (3.88 MB)

[#018] sha256:58875e50f95de4677ff2f34f7fb0d912d0f02db396e2079d26edb2dd58f96e2b - 0.0% (2 KB)

[#019] sha256:99bea9d0a4dcfebd7c1ee2b8d550e6b77f1bda198dbc213dc707e8476e1cecd6 - 0.0% (1.65 KB)

[#020] sha256:83515c33b0094bf388a78a90669879baf1846dc0c8d218f845d622c87c8b713e - 0.0% (331 Bytes)


History
2024-04-18 21:17:33 UTC

/bin/sh -c #(nop) ADD file:6c11edc513b28b5a4034ee9c0d4cdcf019a82635ebb8a9e02732800fa457f683 in /

2024-04-18 21:17:33 UTC

/bin/sh -c #(nop) CMD ["bash"]

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.13

2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)

ENV PHP_URL=https://www.php.net/distributions/php-8.3.13.tar.xz PHP_ASC_URL=https://www.php.net/distributions/php-8.3.13.tar.xz.asc

2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)

ENV PHP_SHA256=89adb978cca209124fe53fd6327bc4966ca21213a7fa2e9504f854e340873018

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"]

Details
Created

2024-04-18 21:17:33 UTC

Size

178 MB

Content Digest
Environment
APACHE_CONFDIR

/etc/apache2

APACHE_ENVVARS

/etc/apache2/envvars

GPG_KEYS

1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA

PATH

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

PHPIZE_DEPS

autoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c

PHP_ASC_URL

https://www.php.net/distributions/php-8.3.13.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_SHA256

89adb978cca209124fe53fd6327bc4966ca21213a7fa2e9504f854e340873018

PHP_URL

https://www.php.net/distributions/php-8.3.13.tar.xz

PHP_VERSION

8.3.13

YOURLS_SHA256

62a95ba766d62f3305d75944cbfe12d5a90c08c88fbf2f6e67150d36412b916f

YOURLS_VERSION

1.9.2


Layers

[#000] sha256:b5dc74e4487f0d4e25ed24462fe1564f5d931072ec24eeaee669f9cbe27f10c4 - 17.74% (31.6 MB)

[#001] sha256:6aae56eb39d7a6f0865b2b2c1e759158f7f32cb38431cf0b9f4a53e75069829a - 0.0% (224 Bytes)

[#002] sha256:cc191720824d9a8274cc0a9d7a4e17b74deb924b9ba62a638fcfe329b1cb843a - 55.34% (98.5 MB)

[#003] sha256:0e65ebf34f6eed8b3368c7c37216f302c7b19e10d99d1c5ebd90d00bbf57cd63 - 0.0% (223 Bytes)

[#004] sha256:54ca7c4e1c934a05195ae2806efa08495b749078e5060a107b69954c9e8831f3 - 11.41% (20.3 MB)

[#005] sha256:8afeb891a5f261be3057466eac9022a1bd1afa1a3773815828cd1caeb277139c - 0.0% (432 Bytes)

[#006] sha256:de6afdb35491d58f7d16d1d4ace112bba4fb8ba8a1702dbad4ec8737e9e449f6 - 0.0% (485 Bytes)

[#007] sha256:6d9c1662c1cd31c1b30da28d8a64d154191c62c8f67160fc0a128bf44732975d - 6.76% (12 MB)

[#008] sha256:176f2372ce1117548afc0e0c9c94d3ea66369918814c22c7e2225d00583fca3d - 0.0% (486 Bytes)

[#009] sha256:eb01cf1c872c3320163513026ee4b59b59fd44aade2a4e52c085bdb61c1769e2 - 6.46% (11.5 MB)

[#010] sha256:62d09e36eb35cc217a3f1050664d124ec2c35c549490327fd1c2716993eadb32 - 0.0% (2.4 KB)

[#011] sha256:5d2c222712debb08cb59b5b2e7fc0afdaf37961b8aff5ba982fef2f95cca9b9c - 0.0% (244 Bytes)

[#012] sha256:d736ea7f89ac990eb370b2c10073c9c5eb18902de47ba54ef84968f23f3c8590 - 0.0% (889 Bytes)

[#013] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)

[#014] sha256:d7f7aeb1b42dd7151520676018082d338098da825d75a99e2795539f82aaa048 - 0.1% (184 KB)

[#015] sha256:eebec10fa36c4e87cfe86f589275d9c96ac17fbd076c16224761418f7bc0fcb5 - 0.0% (325 Bytes)

[#016] sha256:d827eb841231c98e501b80eb558cef9bcc5ebb6436710cba7c364749ece28eef - 0.0% (347 Bytes)

[#017] sha256:5d6a170a77c5f2921d18a967127c294b19e19a0f9dc14e1806612aeb2fb4a35f - 2.18% (3.88 MB)

[#018] sha256:4eb7cd9a9c15bb42f0e51adc4ffe58a77505812ce3204a68b9ed568b3d283c7b - 0.0% (2 KB)

[#019] sha256:37a56e238dbc2ae643d647ef32d4ea7a2b35789428a3957bd98e0186fad173e2 - 0.0% (1.65 KB)

[#020] sha256:0a58cbe1dc7b0d534a796059cf251cce44d9d09fc0d4e5cad6f9359ff9cc87e7 - 0.0% (331 Bytes)


History
2024-04-18 21:17:33 UTC

/bin/sh -c #(nop) ADD file:92b9ed0a5c924ec85b272100ff6dc81f126c6bd277ec2b3782af1119f9e07391 in /

2024-04-18 21:17:33 UTC

/bin/sh -c #(nop) CMD ["bash"]

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.13

2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)

ENV PHP_URL=https://www.php.net/distributions/php-8.3.13.tar.xz PHP_ASC_URL=https://www.php.net/distributions/php-8.3.13.tar.xz.asc

2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)

ENV PHP_SHA256=89adb978cca209124fe53fd6327bc4966ca21213a7fa2e9504f854e340873018

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"]

Details
Created

2024-04-18 21:17:33 UTC

Size

149 MB

Content Digest
Environment
APACHE_CONFDIR

/etc/apache2

APACHE_ENVVARS

/etc/apache2/envvars

GPG_KEYS

1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA

PATH

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

PHPIZE_DEPS

autoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c

PHP_ASC_URL

https://www.php.net/distributions/php-8.3.13.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_SHA256

89adb978cca209124fe53fd6327bc4966ca21213a7fa2e9504f854e340873018

PHP_URL

https://www.php.net/distributions/php-8.3.13.tar.xz

PHP_VERSION

8.3.13

YOURLS_SHA256

62a95ba766d62f3305d75944cbfe12d5a90c08c88fbf2f6e67150d36412b916f

YOURLS_VERSION

1.9.2


Layers

[#000] sha256:3544f1137f2bd42b766143fd0dc535d7e3a32f7fab936cdbc531329371bc5687 - 17.63% (26.2 MB)

[#001] sha256:0ef30fd559c6ef2ac6477f19c70672a7ee15e6df0955b9418d7d99e635fa1bf0 - 0.0% (226 Bytes)

[#002] sha256:e4284cccc34f4d86bd5b1ffc10f277aa5cc0d4e8e4bf9be585b727389498bc65 - 51.83% (77.1 MB)

[#003] sha256:310b072383a75b21caa7c43d077f84a4e9c721b6f8b19ab0e9df353f53ab84ca - 0.0% (224 Bytes)

[#004] sha256:3cca23539a560ecbc74c5143d2cafda70db6eb98973a13e443b451e0c9c2995f - 12.76% (19 MB)

[#005] sha256:7a45ddf6b46c9a6c7f526ae595797099a5fc579b55abcfd3898676b4d492cd2b - 0.0% (436 Bytes)

[#006] sha256:9251a13b927d3a64cfbffb8b90c4c32f8b6e265b8d38173390a57a3b727aad43 - 0.0% (488 Bytes)

[#007] sha256:e9b1bda4c44d2e98fb7018115294dc73322a28b9af83874543ca5c63de4abc3d - 8.09% (12 MB)

[#008] sha256:785bf64522e1b32c4cee86819777e62c531123c4d13512f91db7511cbd90a3f4 - 0.0% (485 Bytes)

[#009] sha256:ef0f20dcc891cb68594afa6d0175c48a37242b3e963b6be4381227223214d70d - 6.97% (10.4 MB)

[#010] sha256:1f8912b1ef07621283266d8e2841560b10d404adb263a44572cbe12310802f32 - 0.0% (2.4 KB)

[#011] sha256:143410cb78ed7da42646370a15b2c736c720ea571758e8e238028bb832befe21 - 0.0% (245 Bytes)

[#012] sha256:5c6cd9cc7ec59b6ceaa395f922720016c9035a7e78ea27ef4d7c1a93f08966c1 - 0.0% (891 Bytes)

[#013] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)

[#014] sha256:a36839dcf7ee73476b36520ea72b9cad097f626a931339430a6990f1a55cca29 - 0.1% (158 KB)

[#015] sha256:2d01f6be6f1195d25f0c07a4e252cedca1d9b235cc4a2d985fcd35ab42033d26 - 0.0% (327 Bytes)

[#016] sha256:dfb25ef89acf66fda18c508c840ab65102e90982f09b4621460c7a5cd488aeff - 0.0% (346 Bytes)

[#017] sha256:f3cecd581cdb47ed5ce6045d5b74eaa27cabd4635db2d6f37e01a82eb8a7a232 - 2.61% (3.88 MB)

[#018] sha256:d2fd5657b9ea92da2ad4e1500ad63c8d3d3d32dda765693468b986833a9003f5 - 0.0% (2 KB)

[#019] sha256:997894052800a9e7f6a52db6cbf59aebc826a13777f2b45bedba8bf221341116 - 0.0% (1.65 KB)

[#020] sha256:8edc75b4f846a2b8c151b68acdca67ba34178a5cf825235664b143b5d7b89507 - 0.0% (330 Bytes)


History
2024-04-18 21:17:33 UTC

/bin/sh -c #(nop) ADD file:53293b1530bfd7e933ac5a321d4b0604f56c0fa25d3afeaedb0cec1938b938a3 in /

2024-04-18 21:17:33 UTC

/bin/sh -c #(nop) CMD ["bash"]

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.13

2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)

ENV PHP_URL=https://www.php.net/distributions/php-8.3.13.tar.xz PHP_ASC_URL=https://www.php.net/distributions/php-8.3.13.tar.xz.asc

2024-04-18 21:17:33 UTC (buildkit.dockerfile.v0)

ENV PHP_SHA256=89adb978cca209124fe53fd6327bc4966ca21213a7fa2e9504f854e340873018

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"]

Danger Zone
Delete Tag

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.

Delete