Namespace
library
Image / Tag
yourls:1.9-apache
Content Digest
sha256:75d2e489207c460e56695ea1e2f32ca1826dd91296c0991e46fd385dc2ad0c5c
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:7379b58056e85869f90d8f78478cafd0c7468ad3b5085482a0850cee625a847a - 16.62% (28.7 MB)

[#001] sha256:5730ecd353f00dc5d7c429c07da2180b16cc0f32fcd9200a6d88bb58703554d6 - 0.0% (225 Bytes)

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

[#003] sha256:280a691a6cfa7ee0ab9a4cb8ce310630e17e011b3c16c8523739d129efd24d56 - 0.0% (225 Bytes)

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

[#005] sha256:9feeeb5b5dec7d781d0e609f45dcadfcbc3bdab6f6db95a56295057487a5779d - 0.0% (426 Bytes)

[#006] sha256:00674ac4775c497ed8e8be91a7ea96c3ead0df25c60561cdfbd1dc84e5267ea7 - 0.0% (479 Bytes)

[#007] sha256:486748d4a001702ccf1e41a38d8fe929de0d46de21bd82df4cd07c159a28a153 - 6.95% (12 MB)

[#008] sha256:cee35a35128cb3aff68b344dedc730efbdc388440cb4440f29a756ce686e6b27 - 0.0% (489 Bytes)

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

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

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

[#012] sha256:925427a2ead40b2abdadfe4ba2a25bf9c7f25c7a8402c3454842f98d3e1c5b0e - 0.0% (890 Bytes)

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

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

[#015] sha256:48ce3b39c5ca0590bf8ae51aaa27af1d1030266487bfeb32e31f347cbc153273 - 0.0% (324 Bytes)

[#016] sha256:90e7907c31028728ad9074741b577008ccf300d74884fc673b67a891ac76fbee - 0.0% (344 Bytes)

[#017] sha256:380ad43553409066612e2a1c31cb8474bcee78c157ae766a64bcb136b3364024 - 2.25% (3.88 MB)

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

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

[#020] sha256:d3b09d2d3f182377e2a3ffcbd679ef2b245c2a074646dc2fbac32ee1b4b44f1a - 0.0% (329 Bytes)


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

ADD rootfs.tar.xz / # buildkit

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

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:2d429b9e73a6cf90a5bb85105c8118b30a1b2deedeae3ea9587055ffcb80eb45 - 15.96% (27.8 MB)

[#001] sha256:711ad809e8ed1f2b6c0bf03b079947a0f57091689ef9a2e0335fc41215d21dc9 - 0.0% (223 Bytes)

[#002] sha256:83176653a5705526d7f352ac7f87e03c8c4062b576492ebd3bc14e6e339105fe - 57.19% (99.5 MB)

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

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

[#005] sha256:c2e90a89baf9b694acc777cd4ead537011fed37ac981c2ebc72f2759e39832bf - 0.0% (429 Bytes)

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

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

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

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

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

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

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

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

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

[#015] sha256:4b4ba89035aaaf3cbe58849588f3ed0478f4a23d342078ef269b92a6ac269513 - 0.0% (326 Bytes)

[#016] sha256:60dfeee7203f0b11d1633ac81879cf4f00dc67344093a3e65dd5cef28de59ea1 - 0.0% (342 Bytes)

[#017] sha256:271d7a876a6987946386df9be265ec6d033f7225f51ffbef43e4108ad0d21192 - 2.23% (3.88 MB)

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

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

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


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

ADD rootfs.tar.xz / # buildkit

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

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:5ecbccf2cc6c4ffb179160d83e2f057a548b6aea719fc2b9b49c502da3d570e3 - 17.26% (25.6 MB)

[#001] sha256:5a0ecfad706f423d72f784713c6e330fb07894f5581828886246a6f696dc5dcd - 0.0% (225 Bytes)

[#002] sha256:4bdc0003cb59a2246daf9c98d60695941f3b7fb3e946787615b6b24498c2902a - 52.64% (78.2 MB)

[#003] sha256:30d7cc6d2cd608d6e46c893c66f11311b91174768d7c19e4e8fab10922f896d1 - 0.0% (226 Bytes)

[#004] sha256:0dc288200a587c04c4a516848305eb50a074c72c0da800766f18c69bf488a295 - 12.47% (18.5 MB)

[#005] sha256:cd8e4f30b1778e27afb7a2ff3afe61620a6461135330c97674b47ec1cba026cc - 0.0% (437 Bytes)

[#006] sha256:464be6317f9579fddccfdb0447cafdd2b1dd8b860a64422d6dc5ff442e9bb491 - 0.0% (489 Bytes)

[#007] sha256:59dd5b689445710ec0136935e3f36c4258aacde6a1231e2e395b98468a7387be - 8.1% (12 MB)

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

[#009] sha256:5656f0dab5b20b6a42a82d196faed1934d70d52d5ee4272982b0aac0e486857d - 6.81% (10.1 MB)

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

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

[#012] sha256:ead4b84669d994445e3c1fe270470032add5fe7f840079908dc249ab8915819d - 0.0% (894 Bytes)

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

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

[#015] sha256:99743d6440de54536971f9cfffd45d826c2b75ee0b62c36af9bb28eb1f2927bc - 0.0% (329 Bytes)

[#016] sha256:ffecb482d4a356bbce9a2be7becd74c1df4ccf03f9ff0c9d69b0f7754035d787 - 0.0% (349 Bytes)

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

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

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

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


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

ADD rootfs.tar.xz / # buildkit

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

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:ddd3c6488ea8b62db6811ba136fe14cba70219532910e67a91ed3388ec9f5757 - 16.86% (23.6 MB)

[#001] sha256:4297c5ae3c7e8e8915409622802213bf4512c2b4a0bf9a86ed680878ddc18a70 - 0.0% (224 Bytes)

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

[#003] sha256:681174cd466f54c52977f6c159c33d12bdd6aa108d2d06470ff258ce5d3fac19 - 0.0% (226 Bytes)

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

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

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

[#007] sha256:273028c2ba2fe41057f7a76cf4bdb6849859751926e7ad1ba2a11a8251245117 - 8.6% (12 MB)

[#008] sha256:6da7ea3ccfcb57ff264134d68fd8be3d4faf5f1fd72c4ceb4362859eeb6d011a - 0.0% (489 Bytes)

[#009] sha256:281d6fe9094281c86ac33071b384c87ff8e5d7b224f73ad49662cad969a41b0a - 6.84% (9.57 MB)

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

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

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

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

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

[#015] sha256:4137eca10cc7d1a4cecc99720d0193d3848068d9bf0282fc49066dba6b61b6a5 - 0.0% (326 Bytes)

[#016] sha256:36c4e606506374969f0e48a3735d1d4f5ea61338c13d7e9d650ad6de0273dabb - 0.0% (350 Bytes)

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

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

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

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


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

ADD rootfs.tar.xz / # buildkit

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

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:6d29a096dd42e5e003949f934fa6b1a3ec8e076dd8cfc2a85a4e750a3639bf7a - 16.52% (27.8 MB)

[#001] sha256:29e9756e7bfc559baf6454131f81839efb97d80f167664be5b4272ac469b5960 - 0.0% (225 Bytes)

[#002] sha256:77e27785ead77c6cc3a0473bbe35b537db4b7a71bc35c6289f88af2c9ee06119 - 55.59% (93.6 MB)

[#003] sha256:27a00cfa6daf2de029a0f81a774bb1018582dc28b1eb0b8bb09c1d7672fb91ce - 0.0% (225 Bytes)

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

[#005] sha256:410639cb967ec54ee760206ed58c1613b50690b91d753ac3ebf143807443f069 - 0.0% (439 Bytes)

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

[#007] sha256:10ff5ae4bc5e2e430d9b14ecd116fc553182d0a9c05c51edee0aa1e3b8765ea6 - 7.14% (12 MB)

[#008] sha256:259914b8a04b14f7552de32bd8adbf78e62264cfae8384e0f1f8abab84a6cee0 - 0.0% (487 Bytes)

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

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

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

[#012] sha256:6f489a216032816dc4daa64713753937775f896b2696b2f4cfb745a0db1dc58d - 0.0% (891 Bytes)

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

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

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

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

[#017] sha256:98ba8dbbac8f043eabc6b9ce40fd12e0e9623c42eb2093f9d17693b3705d7851 - 2.31% (3.88 MB)

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

[#019] sha256:c32f50498fdb56caec042f18906c0e94c2df2f169fa6c8a9bbf9238320020f4a - 0.0% (1.66 KB)

[#020] sha256:76df486d9ef30839ef3415b177b745e21ff40b10e34ed217a42bf7cdaa74ff69 - 0.0% (329 Bytes)


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

ADD rootfs.tar.xz / # buildkit

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

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:01c6d0bf10848996e396c89b66742849d41fd852c3610146badf9f612e62945b - 18.5% (27.8 MB)

[#001] sha256:346c2177816783e9e289cf3372b166d07be052e7cc48f98690da6b177d62573f - 0.0% (222 Bytes)

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

[#003] sha256:d844fc4b81ddb360a025208b648de202ba45cd9113ce82fcab840d714a113030 - 0.0% (226 Bytes)

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

[#005] sha256:f0f597baf51a1158f2bd7d1e67492508879d9f10f07022905b867a74f1563dca - 0.0% (440 Bytes)

[#006] sha256:1030ffb9a16f20c3ffe986bb80424e63d46a7e47d84a304997b65fbc6efb79e0 - 0.0% (492 Bytes)

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

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

[#009] sha256:73ddb635b423547d20da182758924c69eaa8f7d1e733c7090ae7600022e32a5f - 6.81% (10.2 MB)

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

[#011] sha256:73c0214e3608b71c2b8afa399edab80d990c4590886779afe1f5b286d8cf66ec - 0.0% (249 Bytes)

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

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

[#014] sha256:61eea2797ead057fab6fb3c79f1272fc1231d774728a9f0e76cbab1dfb31dc58 - 0.1% (149 KB)

[#015] sha256:5cc179dfc7b6f9d9d79833622be9d22c62fc6b96e9c0143994aa5fd79112426f - 0.0% (329 Bytes)

[#016] sha256:7410ac757822db38fae3176ba2ff735dc446e9a85d651fb2770acc0dafd64b73 - 0.0% (349 Bytes)

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

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

[#019] sha256:92c35f88985b56ed8f05271638cec3f8b75b12b70f89785ddc320594034e8c75 - 0.0% (1.66 KB)

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


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

ADD rootfs.tar.xz / # buildkit

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

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:75e0ed8549227769329d9bb009b10ff68c47929fad577311f0d99115885347ef - 17.74% (31.6 MB)

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

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

[#003] sha256:e883340f45c1d0e36d2a728cca20410ca3254d93c803c062646dc430b8e41e7b - 0.0% (226 Bytes)

[#004] sha256:2c2155f33ef158a9585945d382ada5e33cc0a6cb3faf942e6f840e0af8c0ef4e - 11.41% (20.3 MB)

[#005] sha256:69e7c3966720dc0d3b2f38f69d3927be83fe5fbd6d2d6ee5d45e6635cd22825b - 0.0% (435 Bytes)

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

[#007] sha256:89ddcfacddb89f55766916850200396dc44ce579c5ea090a49d0b1acd99d3890 - 6.76% (12 MB)

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

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

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

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

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

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

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

[#015] sha256:7d98163603f1f1258830845248c72118701c04caa899f3ed0421d22b5b490c79 - 0.0% (326 Bytes)

[#016] sha256:8eab14c6ac5565053d27dcfd120276d49ea97d16785d21a8b3493400fe054353 - 0.0% (349 Bytes)

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

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

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

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


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

ADD rootfs.tar.xz / # buildkit

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

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:fa8cb447c1a4d7decc9cbf4223b78597699fc7980d77431c085cd6cf32c5b3ed - 17.63% (26.2 MB)

[#001] sha256:557ec8c9288f91e0e914bc88a84e7f99c5caf8f6d9840288a739773c38a7c07a - 0.0% (225 Bytes)

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

[#003] sha256:36392fa6e835e08d294727ebd2c1c3a2bb6f80d6dc6273a5056d2f6ed2c1ffed - 0.0% (225 Bytes)

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

[#005] sha256:f5427c8084a617f516431588d36205b585b6e003a7c6f3326454cc9e4e520946 - 0.0% (444 Bytes)

[#006] sha256:abd0bc1eddda7a2174cecf32a39f30306b749d6521c2b41823a1b05b41eef6f9 - 0.0% (486 Bytes)

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

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

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

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

[#011] sha256:5677d11da5533112aabd9ccbf292431eec686d66557cbeffe31cf0742d9ccb2d - 0.0% (243 Bytes)

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

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

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

[#015] sha256:7d14d8ffd2ff460d3b5ca1de3c10164ced186e8e904c254e663e45d8868b6b57 - 0.0% (326 Bytes)

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

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

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

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

[#020] sha256:6dfba857c361eabbeef8229d6e62ec3d88e48410aac3b6d4e03d1dafaad0bf34 - 0.0% (330 Bytes)


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

ADD rootfs.tar.xz / # buildkit

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

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