2025-01-07 10:10:46 UTC
89.2 MB
1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PHPIZE_DEPSautoconf dpkg-dev dpkg file g++ gcc libc-dev make pkgconf re2c
PHP_ASC_URLhttps://www.php.net/distributions/php-8.3.15.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_SHA2563df5d45637283f759eef8fc3ce03de829ded3e200c3da278936a684955d2f94f
PHP_URLhttps://www.php.net/distributions/php-8.3.15.tar.xz
PHP_VERSION8.3.15
[#000] sha256:245043d9199c263f869fc0558f43f7cb98bbc92acdd5def1b4f690adc0ac7807 - 3.89% (3.47 MB)
[#001] sha256:83437fe0a4c3a771901ef1e70fce3a16df07a0ea922dc58b5cc0df6d0eab9cee - 3.55% (3.17 MB)
[#002] sha256:fa1e60b4f13ec865a4b0cd3b520c3ee5ca5b635fcac92680c4772f5562dc60e7 - 0.0% (941 Bytes)
[#003] sha256:d958ffbb0049b84d94fc38c92fc7bebfa1d429dd102aef35e355850130868928 - 0.0% (221 Bytes)
[#004] sha256:b4a90996a0f85e5fd58533572a9e26ea25b73b1636f5467cc6ea6b228f997110 - 13.41% (12 MB)
[#005] sha256:bc7892757f58835169c21e1bb7281ee5794b59f7e4ec01a17d1f29afdaeb8c60 - 0.0% (484 Bytes)
[#006] sha256:92816e910173cf2825cbf274bf7a4eb9911cc953751c2edc5846fd077911ea02 - 14.11% (12.6 MB)
[#007] sha256:50d2d265d22a576c0eb6f147d9aa3b801dc9a22077b9925fa1253fd508c6eb2a - 0.0% (2.39 KB)
[#008] sha256:023489b36d5687d757a794e72afaa57f869e9e9ec9e6c680e93cef45d40ef814 - 0.02% (19.3 KB)
[#009] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)
[#010] sha256:1044383fd277bf7f5635e388e8dedee33e8e749d19e3232d902be16f2d795228 - 0.01% (8.97 KB)
[#011] sha256:a5c35216339b841d62f1e228ca445fd0dded7b1f7cdc8d3987ad6871a505e702 - 15.65% (14 MB)
[#012] sha256:a7375488b61290bd02abc0e379676868860e8e36a0c4ee13c055befe1ab87c4c - 19.96% (17.8 MB)
[#013] sha256:064125e1f50f06e1f60238a2e3cb9f339fb5c2987cba66763bab18e0c1c92404 - 0.0% (142 Bytes)
[#014] sha256:33c4b18e8a0fcff953a6f4a9f71bfa98677ab5d728e40739a71cfc431c7af1a1 - 29.38% (26.2 MB)
[#015] sha256:3329c64daa76d76cdf40620e047442d3e0a00be5b61dad8eddf22b8d9a621e5a - 0.01% (6.75 KB)
[#016] sha256:d4d3a66c40e801ec54d5d2521f5d1b0b313b620a7672d81e1723989a69842c1e - 0.0% (411 Bytes)
[#017] sha256:36e98ff99ebf6a61ca45657abef781902f3d382d593dce4d3b9ba8a3ae8d9cca - 0.0% (544 Bytes)
[#018] sha256:01f7f9c67d108bd4ea8092109e2f3d18f95110318201a6849a30c248391465dd - 0.0% (1.08 KB)
ADD alpine-minirootfs-3.21.1-x86_64.tar.gz / # buildkit
2024-12-19 18:32:34 UTC (buildkit.dockerfile.v0)CMD ["/bin/sh"]
2024-12-19 18:32:34 UTC (buildkit.dockerfile.v0)ENV PHPIZE_DEPS=autoconf dpkg-dev dpkg file g++ gcc libc-dev make pkgconf re2c
2024-12-19 18:32:34 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c apk add --no-cache ca-certificates curl openssl tar xz # buildkit
2024-12-19 18:32:34 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; adduser -u 82 -D -S -G www-data www-data # buildkit
2024-12-19 18:32:34 UTC (buildkit.dockerfile.v0)ENV PHP_INI_DIR=/usr/local/etc/php
2024-12-19 18:32:34 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-12-19 18:32:34 UTC (buildkit.dockerfile.v0)ENV PHP_CFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
2024-12-19 18:32:34 UTC (buildkit.dockerfile.v0)ENV PHP_CPPFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
2024-12-19 18:32:34 UTC (buildkit.dockerfile.v0)ENV PHP_LDFLAGS=-Wl,-O1 -pie
2024-12-19 18:32:34 UTC (buildkit.dockerfile.v0)ENV GPG_KEYS=1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA
2024-12-19 18:32:34 UTC (buildkit.dockerfile.v0)ENV PHP_VERSION=8.3.15
2024-12-19 18:32:34 UTC (buildkit.dockerfile.v0)ENV PHP_URL=https://www.php.net/distributions/php-8.3.15.tar.xz PHP_ASC_URL=https://www.php.net/distributions/php-8.3.15.tar.xz.asc
2024-12-19 18:32:34 UTC (buildkit.dockerfile.v0)ENV PHP_SHA256=3df5d45637283f759eef8fc3ce03de829ded3e200c3da278936a684955d2f94f
2024-12-19 18:32:34 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apk add --no-cache --virtual .fetch-deps gnupg; mkdir -p /usr/src; cd /usr/src; curl -fsSL -o php.tar.xz "$PHP_URL"; if [ -n "$PHP_SHA256" ]; then echo "$PHP_SHA256 *php.tar.xz" | sha256sum -c -; fi; if [ -n "$PHP_ASC_URL" ]; then curl -fsSL -o php.tar.xz.asc "$PHP_ASC_URL"; export GNUPGHOME="$(mktemp -d)"; for key in $GPG_KEYS; do gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key"; done; gpg --batch --verify php.tar.xz.asc php.tar.xz; gpgconf --kill all; rm -rf "$GNUPGHOME"; fi; apk del --no-network .fetch-deps # buildkit
2024-12-19 18:32:34 UTC (buildkit.dockerfile.v0)COPY docker-php-source /usr/local/bin/ # buildkit
2024-12-19 18:32:34 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apk add --no-cache --virtual .build-deps $PHPIZE_DEPS argon2-dev coreutils curl-dev gnu-libiconv-dev libsodium-dev libxml2-dev linux-headers oniguruma-dev openssl-dev readline-dev sqlite-dev ; rm -vf /usr/include/iconv.h; export CFLAGS="$PHP_CFLAGS" CPPFLAGS="$PHP_CPPFLAGS" LDFLAGS="$PHP_LDFLAGS" PHP_BUILD_PROVIDER='https://github.com/docker-library/php' PHP_UNAME='Linux - Docker' ; docker-php-source extract; cd /usr/src/php; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; ./configure --build="$gnuArch" --with-config-file-path="$PHP_INI_DIR" --with-config-file-scan-dir="$PHP_INI_DIR/conf.d" --enable-option-checking=fatal --with-mhash --with-pic --enable-mbstring --enable-mysqlnd --with-password-argon2 --with-sodium=shared --with-pdo-sqlite=/usr --with-sqlite3=/usr --with-curl --with-iconv=/usr --with-openssl --with-readline --with-zlib --disable-phpdbg --with-pear --disable-cgi --enable-fpm --with-fpm-user=www-data --with-fpm-group=www-data ; make -j "$(nproc)"; find -type f -name '*.a' -delete; make install; find /usr/local -type f -perm '/0111' -exec sh -euxc ' strip --strip-all "$@" || : ' -- '{}' + ; make clean; cp -v php.ini-* "$PHP_INI_DIR/"; cd /; docker-php-source delete; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' )"; apk add --no-cache $runDeps; apk del --no-network .build-deps; pecl update-channels; rm -rf /tmp/pear ~/.pearrc; php --version # buildkit
2024-12-19 18:32:34 UTC (buildkit.dockerfile.v0)COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ # buildkit
2024-12-19 18:32:34 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c docker-php-ext-enable sodium # buildkit
2024-12-19 18:32:34 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-php-entrypoint"]
2024-12-19 18:32:34 UTC (buildkit.dockerfile.v0)WORKDIR /var/www/html
2024-12-19 18:32:34 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; cd /usr/local/etc; if [ -d php-fpm.d ]; then sed 's!=NONE/!=!g' php-fpm.conf.default | tee php-fpm.conf > /dev/null; cp php-fpm.d/www.conf.default php-fpm.d/www.conf; else mkdir php-fpm.d; cp php-fpm.conf.default php-fpm.d/www.conf; { echo '[global]'; echo 'include=etc/php-fpm.d/*.conf'; } | tee php-fpm.conf; fi; { echo '[global]'; echo 'error_log = /proc/self/fd/2'; echo; echo '; https://github.com/docker-library/php/pull/725#issuecomment-443540114'; echo 'log_limit = 8192'; echo; echo '[www]'; echo '; php-fpm closes STDOUT on startup, so sending logs to /proc/self/fd/1 does not work.'; echo '; https://bugs.php.net/bug.php?id=73886'; echo 'access.log = /proc/self/fd/2'; echo; echo 'clear_env = no'; echo; echo '; Ensure worker stdout and stderr are sent to the main error log.'; echo 'catch_workers_output = yes'; echo 'decorate_workers_output = no'; } | tee php-fpm.d/docker.conf; { echo '[global]'; echo 'daemonize = no'; echo; echo '[www]'; echo 'listen = 9000'; } | tee php-fpm.d/zz-docker.conf; mkdir -p "$PHP_INI_DIR/conf.d"; { echo '; https://github.com/docker-library/php/issues/878#issuecomment-938595965'; echo 'fastcgi.logging = Off'; } > "$PHP_INI_DIR/conf.d/docker-fpm.ini" # buildkit
2024-12-19 18:32:34 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGQUIT
2024-12-19 18:32:34 UTC (buildkit.dockerfile.v0)EXPOSE map[9000/tcp:{}]
2024-12-19 18:32:34 UTC (buildkit.dockerfile.v0)CMD ["php-fpm"]
2025-01-07 10:10:25 UTC (buildkit.dockerfile.v0)EXPOSE map[80/tcp:{}]
2025-01-07 10:10:25 UTC (buildkit.dockerfile.v0)EXPOSE map[8080/tcp:{}]
2025-01-07 10:10:25 UTC (buildkit.dockerfile.v0)EXPOSE map[8443/tcp:{}]
2025-01-07 10:10:25 UTC (buildkit.dockerfile.v0)COPY /usr/bin/caddy /usr/bin/caddy # buildkit
2025-01-07 10:10:25 UTC (buildkit.dockerfile.v0)COPY /usr/local/bin/docker /usr/local/bin/docker # buildkit
2025-01-07 10:10:25 UTC (buildkit.dockerfile.v0)WORKDIR /var/www/docker-aio
2025-01-07 10:10:46 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -ex; apk upgrade --no-cache -a; apk add --no-cache shadow; groupmod -g 33 www-data; usermod -u 33 -g 33 www-data; apk add --no-cache util-linux-misc ca-certificates wget bash apache2 apache2-proxy apache2-ssl supervisor openssl sudo netcat-openbsd curl grep; apk add --no-cache --virtual .build-deps autoconf build-base; pecl install APCu-5.1.24; docker-php-ext-enable apcu; rm -r /tmp/pear; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local/lib/php/extensions | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' )"; apk add --no-cache --virtual .nextcloud-aio-rundeps $runDeps; apk del .build-deps; grep -q '^pm = dynamic' /usr/local/etc/php-fpm.d/www.conf; sed -i 's/^pm = dynamic/pm = ondemand/' /usr/local/etc/php-fpm.d/www.conf; sed -i 's/^pm.max_children =.*/pm.max_children = 80/' /usr/local/etc/php-fpm.d/www.conf; sed -i 's|access.log = /proc/self/fd/2|access.log = /proc/self/fd/1|' /usr/local/etc/php-fpm.d/docker.conf; grep -q ';listen.allowed_clients' /usr/local/etc/php-fpm.d/www.conf; sed -i 's|;listen.allowed_clients.*|listen.allowed_clients = 127.0.0.1,::1|' /usr/local/etc/php-fpm.d/www.conf; apk add --no-cache git; wget https://getcomposer.org/installer -O - | php -- --install-dir=/usr/local/bin --filename=composer; chmod +x /usr/local/bin/composer; cd /var/www/docker-aio; git clone https://github.com/nextcloud-releases/all-in-one.git --depth 1 .; find ./ -maxdepth 1 -mindepth 1 -not -path ./php -not -path ./community-containers -exec rm -r {} \; ; chown www-data:www-data -R /var/www/docker-aio; cd php; sudo -u www-data composer install --no-dev; sudo -u www-data composer clear-cache; cd ..; rm -f /usr/local/bin/composer; chmod -R 770 /var/www/docker-aio; chown -R www-data:www-data /var/www; rm -r php/data; rm -r php/session; mkdir -p /etc/apache2/certs; cd /etc/apache2/certs; openssl req -new -newkey rsa:4096 -days 3650 -nodes -x509 -subj "/C=DE/ST=BE/L=Local/O=Dev/CN=nextcloud.local" -keyout /etc/apache2/certs/ssl.key -out /etc/apache2/certs/ssl.crt; sed -i -e '/^Listen /d' -e 's/^LogLevel .*/LogLevel error/' -e 's|^ErrorLog .*|ErrorLog /proc/self/fd/2|' -e 's/User apache/User www-data/g' -e 's/Group apache/Group www-data/g' -e 's/^#\(LoadModule .*mod_rewrite.so\)/\1/' -e 's/^#\(LoadModule .*mod_headers.so\)/\1/' -e 's/^#\(LoadModule .*mod_env.so\)/\1/' -e 's/^#\(LoadModule .*mod_mime.so\)/\1/' -e 's/^#\(LoadModule .*mod_dir.so\)/\1/' -e 's/^#\(LoadModule .*mod_authz_core.so\)/\1/' -e 's/^#\(LoadModule .*mod_mpm_event.so\)/\1/' -e 's/\(LoadModule .*mod_mpm_worker.so\)/#\1/' -e 's/\(LoadModule .*mod_mpm_prefork.so\)/#\1/' -e 's/\(ScriptAlias \)/#\1/' /etc/apache2/httpd.conf; mkdir -p /etc/apache2/logs; rm /etc/apache2/conf.d/ssl.conf; echo "ServerName localhost" | tee -a /etc/apache2/httpd.conf; grep -q '^LoadModule lbmethod_heartbeat_module' /etc/apache2/conf.d/proxy.conf; sed -i 's|^LoadModule lbmethod_heartbeat_module.*|#LoadModule lbmethod_heartbeat_module|' /etc/apache2/conf.d/proxy.conf; echo "SSLSessionCache nonenotnull" | tee -a /etc/apache2/httpd.conf; echo "LoadModule ssl_module modules/mod_ssl.so" | tee -a /etc/apache2/httpd.conf; echo "LoadModule socache_shmcb_module modules/mod_socache_shmcb.so" | tee -a /etc/apache2/httpd.conf; echo "Include /etc/apache2/sites-available/mastercontainer.conf" | tee -a /etc/apache2/httpd.conf; rm -f /etc/apache2/conf.d/default.conf /etc/apache2/conf.d/userdir.conf /etc/apache2/conf.d/info.conf; rm -rf /var/www/localhost/cgi-bin/; mkdir /var/log/supervisord; mkdir /var/run/supervisord; # buildkit
2025-01-07 10:10:46 UTC (buildkit.dockerfile.v0)COPY --chmod=775 *.sh / # buildkit
2025-01-07 10:10:46 UTC (buildkit.dockerfile.v0)COPY --chmod=664 Caddyfile /Caddyfile # buildkit
2025-01-07 10:10:46 UTC (buildkit.dockerfile.v0)COPY --chmod=664 supervisord.conf /supervisord.conf # buildkit
2025-01-07 10:10:46 UTC (buildkit.dockerfile.v0)COPY mastercontainer.conf /etc/apache2/sites-available/mastercontainer.conf # buildkit
2025-01-07 10:10:46 UTC (buildkit.dockerfile.v0)USER root
2025-01-07 10:10:46 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["/start.sh"]
2025-01-07 10:10:46 UTC (buildkit.dockerfile.v0)HEALTHCHECK &{["CMD-SHELL" "/healthcheck.sh"] "0s" "0s" "0s" "0s" '\x00'}
2025-01-07 10:13:59 UTC
88 MB
1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PHPIZE_DEPSautoconf dpkg-dev dpkg file g++ gcc libc-dev make pkgconf re2c
PHP_ASC_URLhttps://www.php.net/distributions/php-8.3.15.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_SHA2563df5d45637283f759eef8fc3ce03de829ded3e200c3da278936a684955d2f94f
PHP_URLhttps://www.php.net/distributions/php-8.3.15.tar.xz
PHP_VERSION8.3.15
[#000] sha256:707c94c90c597447ce10a36c9b56355c1cc67d0cf593a592daeb419d99a30d85 - 4.32% (3.8 MB)
[#001] sha256:9d40162970ab5d274af508499ec972de793b17d5f14ffee01a11a8e5a5256724 - 3.59% (3.16 MB)
[#002] sha256:2ee8949964140eb86d4055cf8d682a19190f4519a76a0135d9c0635b8e590a12 - 0.0% (943 Bytes)
[#003] sha256:a5dc0ab84d61c5b652f4966a78d4064b20a3ee74b683b2fff8a31bfa6695fd46 - 0.0% (220 Bytes)
[#004] sha256:ca0bdb6e7b79499e596b4c2d9e0b652d3ceb130e8540eb6dfe824b8c34c36263 - 13.6% (12 MB)
[#005] sha256:b768d70aafa38bea4fd88b3a2661e71dfeda4f3a573a2d4ce3f9d2fbf63405e7 - 0.0% (490 Bytes)
[#006] sha256:d239500ae7e14c6947455dcfadad35d0694c5bb50ace29e57443e40724d18ffa - 14.29% (12.6 MB)
[#007] sha256:55a58e9aa2fafed1600b8f0bea4f7aa32ab7f092220fc824d0ffef41fa7aa359 - 0.0% (2.39 KB)
[#008] sha256:00d911c5bf4e9cb436900791ce8016e41a8cd12ce3cbe533217a57b07617bbf9 - 0.02% (19.1 KB)
[#009] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)
[#010] sha256:f157db7388a97f4f2f5628be437470f2df23acbe549e689e5f4b58ccd307a825 - 0.01% (8.96 KB)
[#011] sha256:dd1d2377201f824d232201ae77ec1d30288b9f462ef976b546ff19e21c3e2db9 - 14.69% (12.9 MB)
[#012] sha256:ae5443feef820b0a87ee80c167ad1b2d9d932dcac61d17a3da7f768b95e3e765 - 19.1% (16.8 MB)
[#013] sha256:a454bdbd68ae73a35fe3c1496c5fce6f5e75d8307aa608462780a33df5070269 - 0.0% (143 Bytes)
[#014] sha256:067fd506fd4b5ee68fa0c44d1bad38597680dc9ab5bb2ccba42bcd3a7b8346a3 - 30.37% (26.7 MB)
[#015] sha256:573490d7140e4c38789ee7d0247f1107fe6afeb30338d6c6adf75fa3961e5f3b - 0.01% (6.75 KB)
[#016] sha256:ff9cd4c1600ea527dc97aa29a6c9c362d8ea2571167361e50489eaebad0c5e8f - 0.0% (411 Bytes)
[#017] sha256:32f4746f2dfc9fd673a9b30d7dab6b1429f8ac60dbd7618eca3c35d32eee8ab9 - 0.0% (544 Bytes)
[#018] sha256:b78dc5d3bed6dd32be95ed368c1c22e6aba3527ed2221ca3911e320ea4b6aa33 - 0.0% (1.08 KB)
ADD alpine-minirootfs-3.21.1-aarch64.tar.gz / # buildkit
2024-12-19 18:32:34 UTC (buildkit.dockerfile.v0)CMD ["/bin/sh"]
2024-12-19 18:32:34 UTC (buildkit.dockerfile.v0)ENV PHPIZE_DEPS=autoconf dpkg-dev dpkg file g++ gcc libc-dev make pkgconf re2c
2024-12-19 18:32:34 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c apk add --no-cache ca-certificates curl openssl tar xz # buildkit
2024-12-19 18:32:34 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; adduser -u 82 -D -S -G www-data www-data # buildkit
2024-12-19 18:32:34 UTC (buildkit.dockerfile.v0)ENV PHP_INI_DIR=/usr/local/etc/php
2024-12-19 18:32:34 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-12-19 18:32:34 UTC (buildkit.dockerfile.v0)ENV PHP_CFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
2024-12-19 18:32:34 UTC (buildkit.dockerfile.v0)ENV PHP_CPPFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
2024-12-19 18:32:34 UTC (buildkit.dockerfile.v0)ENV PHP_LDFLAGS=-Wl,-O1 -pie
2024-12-19 18:32:34 UTC (buildkit.dockerfile.v0)ENV GPG_KEYS=1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA
2024-12-19 18:32:34 UTC (buildkit.dockerfile.v0)ENV PHP_VERSION=8.3.15
2024-12-19 18:32:34 UTC (buildkit.dockerfile.v0)ENV PHP_URL=https://www.php.net/distributions/php-8.3.15.tar.xz PHP_ASC_URL=https://www.php.net/distributions/php-8.3.15.tar.xz.asc
2024-12-19 18:32:34 UTC (buildkit.dockerfile.v0)ENV PHP_SHA256=3df5d45637283f759eef8fc3ce03de829ded3e200c3da278936a684955d2f94f
2024-12-19 18:32:34 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apk add --no-cache --virtual .fetch-deps gnupg; mkdir -p /usr/src; cd /usr/src; curl -fsSL -o php.tar.xz "$PHP_URL"; if [ -n "$PHP_SHA256" ]; then echo "$PHP_SHA256 *php.tar.xz" | sha256sum -c -; fi; if [ -n "$PHP_ASC_URL" ]; then curl -fsSL -o php.tar.xz.asc "$PHP_ASC_URL"; export GNUPGHOME="$(mktemp -d)"; for key in $GPG_KEYS; do gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key"; done; gpg --batch --verify php.tar.xz.asc php.tar.xz; gpgconf --kill all; rm -rf "$GNUPGHOME"; fi; apk del --no-network .fetch-deps # buildkit
2024-12-19 18:32:34 UTC (buildkit.dockerfile.v0)COPY docker-php-source /usr/local/bin/ # buildkit
2024-12-19 18:32:34 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apk add --no-cache --virtual .build-deps $PHPIZE_DEPS argon2-dev coreutils curl-dev gnu-libiconv-dev libsodium-dev libxml2-dev linux-headers oniguruma-dev openssl-dev readline-dev sqlite-dev ; rm -vf /usr/include/iconv.h; export CFLAGS="$PHP_CFLAGS" CPPFLAGS="$PHP_CPPFLAGS" LDFLAGS="$PHP_LDFLAGS" PHP_BUILD_PROVIDER='https://github.com/docker-library/php' PHP_UNAME='Linux - Docker' ; docker-php-source extract; cd /usr/src/php; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; ./configure --build="$gnuArch" --with-config-file-path="$PHP_INI_DIR" --with-config-file-scan-dir="$PHP_INI_DIR/conf.d" --enable-option-checking=fatal --with-mhash --with-pic --enable-mbstring --enable-mysqlnd --with-password-argon2 --with-sodium=shared --with-pdo-sqlite=/usr --with-sqlite3=/usr --with-curl --with-iconv=/usr --with-openssl --with-readline --with-zlib --disable-phpdbg --with-pear --disable-cgi --enable-fpm --with-fpm-user=www-data --with-fpm-group=www-data ; make -j "$(nproc)"; find -type f -name '*.a' -delete; make install; find /usr/local -type f -perm '/0111' -exec sh -euxc ' strip --strip-all "$@" || : ' -- '{}' + ; make clean; cp -v php.ini-* "$PHP_INI_DIR/"; cd /; docker-php-source delete; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' )"; apk add --no-cache $runDeps; apk del --no-network .build-deps; pecl update-channels; rm -rf /tmp/pear ~/.pearrc; php --version # buildkit
2024-12-19 18:32:34 UTC (buildkit.dockerfile.v0)COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ # buildkit
2024-12-19 18:32:34 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c docker-php-ext-enable sodium # buildkit
2024-12-19 18:32:34 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-php-entrypoint"]
2024-12-19 18:32:34 UTC (buildkit.dockerfile.v0)WORKDIR /var/www/html
2024-12-19 18:32:34 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; cd /usr/local/etc; if [ -d php-fpm.d ]; then sed 's!=NONE/!=!g' php-fpm.conf.default | tee php-fpm.conf > /dev/null; cp php-fpm.d/www.conf.default php-fpm.d/www.conf; else mkdir php-fpm.d; cp php-fpm.conf.default php-fpm.d/www.conf; { echo '[global]'; echo 'include=etc/php-fpm.d/*.conf'; } | tee php-fpm.conf; fi; { echo '[global]'; echo 'error_log = /proc/self/fd/2'; echo; echo '; https://github.com/docker-library/php/pull/725#issuecomment-443540114'; echo 'log_limit = 8192'; echo; echo '[www]'; echo '; php-fpm closes STDOUT on startup, so sending logs to /proc/self/fd/1 does not work.'; echo '; https://bugs.php.net/bug.php?id=73886'; echo 'access.log = /proc/self/fd/2'; echo; echo 'clear_env = no'; echo; echo '; Ensure worker stdout and stderr are sent to the main error log.'; echo 'catch_workers_output = yes'; echo 'decorate_workers_output = no'; } | tee php-fpm.d/docker.conf; { echo '[global]'; echo 'daemonize = no'; echo; echo '[www]'; echo 'listen = 9000'; } | tee php-fpm.d/zz-docker.conf; mkdir -p "$PHP_INI_DIR/conf.d"; { echo '; https://github.com/docker-library/php/issues/878#issuecomment-938595965'; echo 'fastcgi.logging = Off'; } > "$PHP_INI_DIR/conf.d/docker-fpm.ini" # buildkit
2024-12-19 18:32:34 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGQUIT
2024-12-19 18:32:34 UTC (buildkit.dockerfile.v0)EXPOSE map[9000/tcp:{}]
2024-12-19 18:32:34 UTC (buildkit.dockerfile.v0)CMD ["php-fpm"]
2025-01-07 10:11:09 UTC (buildkit.dockerfile.v0)EXPOSE map[80/tcp:{}]
2025-01-07 10:11:09 UTC (buildkit.dockerfile.v0)EXPOSE map[8080/tcp:{}]
2025-01-07 10:11:09 UTC (buildkit.dockerfile.v0)EXPOSE map[8443/tcp:{}]
2025-01-07 10:11:09 UTC (buildkit.dockerfile.v0)COPY /usr/bin/caddy /usr/bin/caddy # buildkit
2025-01-07 10:11:10 UTC (buildkit.dockerfile.v0)COPY /usr/local/bin/docker /usr/local/bin/docker # buildkit
2025-01-07 10:11:10 UTC (buildkit.dockerfile.v0)WORKDIR /var/www/docker-aio
2025-01-07 10:13:58 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -ex; apk upgrade --no-cache -a; apk add --no-cache shadow; groupmod -g 33 www-data; usermod -u 33 -g 33 www-data; apk add --no-cache util-linux-misc ca-certificates wget bash apache2 apache2-proxy apache2-ssl supervisor openssl sudo netcat-openbsd curl grep; apk add --no-cache --virtual .build-deps autoconf build-base; pecl install APCu-5.1.24; docker-php-ext-enable apcu; rm -r /tmp/pear; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local/lib/php/extensions | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' )"; apk add --no-cache --virtual .nextcloud-aio-rundeps $runDeps; apk del .build-deps; grep -q '^pm = dynamic' /usr/local/etc/php-fpm.d/www.conf; sed -i 's/^pm = dynamic/pm = ondemand/' /usr/local/etc/php-fpm.d/www.conf; sed -i 's/^pm.max_children =.*/pm.max_children = 80/' /usr/local/etc/php-fpm.d/www.conf; sed -i 's|access.log = /proc/self/fd/2|access.log = /proc/self/fd/1|' /usr/local/etc/php-fpm.d/docker.conf; grep -q ';listen.allowed_clients' /usr/local/etc/php-fpm.d/www.conf; sed -i 's|;listen.allowed_clients.*|listen.allowed_clients = 127.0.0.1,::1|' /usr/local/etc/php-fpm.d/www.conf; apk add --no-cache git; wget https://getcomposer.org/installer -O - | php -- --install-dir=/usr/local/bin --filename=composer; chmod +x /usr/local/bin/composer; cd /var/www/docker-aio; git clone https://github.com/nextcloud-releases/all-in-one.git --depth 1 .; find ./ -maxdepth 1 -mindepth 1 -not -path ./php -not -path ./community-containers -exec rm -r {} \; ; chown www-data:www-data -R /var/www/docker-aio; cd php; sudo -u www-data composer install --no-dev; sudo -u www-data composer clear-cache; cd ..; rm -f /usr/local/bin/composer; chmod -R 770 /var/www/docker-aio; chown -R www-data:www-data /var/www; rm -r php/data; rm -r php/session; mkdir -p /etc/apache2/certs; cd /etc/apache2/certs; openssl req -new -newkey rsa:4096 -days 3650 -nodes -x509 -subj "/C=DE/ST=BE/L=Local/O=Dev/CN=nextcloud.local" -keyout /etc/apache2/certs/ssl.key -out /etc/apache2/certs/ssl.crt; sed -i -e '/^Listen /d' -e 's/^LogLevel .*/LogLevel error/' -e 's|^ErrorLog .*|ErrorLog /proc/self/fd/2|' -e 's/User apache/User www-data/g' -e 's/Group apache/Group www-data/g' -e 's/^#\(LoadModule .*mod_rewrite.so\)/\1/' -e 's/^#\(LoadModule .*mod_headers.so\)/\1/' -e 's/^#\(LoadModule .*mod_env.so\)/\1/' -e 's/^#\(LoadModule .*mod_mime.so\)/\1/' -e 's/^#\(LoadModule .*mod_dir.so\)/\1/' -e 's/^#\(LoadModule .*mod_authz_core.so\)/\1/' -e 's/^#\(LoadModule .*mod_mpm_event.so\)/\1/' -e 's/\(LoadModule .*mod_mpm_worker.so\)/#\1/' -e 's/\(LoadModule .*mod_mpm_prefork.so\)/#\1/' -e 's/\(ScriptAlias \)/#\1/' /etc/apache2/httpd.conf; mkdir -p /etc/apache2/logs; rm /etc/apache2/conf.d/ssl.conf; echo "ServerName localhost" | tee -a /etc/apache2/httpd.conf; grep -q '^LoadModule lbmethod_heartbeat_module' /etc/apache2/conf.d/proxy.conf; sed -i 's|^LoadModule lbmethod_heartbeat_module.*|#LoadModule lbmethod_heartbeat_module|' /etc/apache2/conf.d/proxy.conf; echo "SSLSessionCache nonenotnull" | tee -a /etc/apache2/httpd.conf; echo "LoadModule ssl_module modules/mod_ssl.so" | tee -a /etc/apache2/httpd.conf; echo "LoadModule socache_shmcb_module modules/mod_socache_shmcb.so" | tee -a /etc/apache2/httpd.conf; echo "Include /etc/apache2/sites-available/mastercontainer.conf" | tee -a /etc/apache2/httpd.conf; rm -f /etc/apache2/conf.d/default.conf /etc/apache2/conf.d/userdir.conf /etc/apache2/conf.d/info.conf; rm -rf /var/www/localhost/cgi-bin/; mkdir /var/log/supervisord; mkdir /var/run/supervisord; # buildkit
2025-01-07 10:13:59 UTC (buildkit.dockerfile.v0)COPY --chmod=775 *.sh / # buildkit
2025-01-07 10:13:59 UTC (buildkit.dockerfile.v0)COPY --chmod=664 Caddyfile /Caddyfile # buildkit
2025-01-07 10:13:59 UTC (buildkit.dockerfile.v0)COPY --chmod=664 supervisord.conf /supervisord.conf # buildkit
2025-01-07 10:13:59 UTC (buildkit.dockerfile.v0)COPY mastercontainer.conf /etc/apache2/sites-available/mastercontainer.conf # buildkit
2025-01-07 10:13:59 UTC (buildkit.dockerfile.v0)USER root
2025-01-07 10:13:59 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["/start.sh"]
2025-01-07 10:13:59 UTC (buildkit.dockerfile.v0)HEALTHCHECK &{["CMD-SHELL" "/healthcheck.sh"] "0s" "0s" "0s" "0s" '\x00'}
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.