Namespace
nextcloud
Image / Tag
all-in-one:20250106_094420
Content Digest
sha256:9566f9fc9b54eb5718a7b8036fdbe2a0d1b1fb90631180b2496829ee9cee9fe5
Details
Created

2024-12-20 11:23:03 UTC

Size

90.2 MB

Content Digest
Environment
GPG_KEYS

1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA

PATH

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

PHPIZE_DEPS

autoconf dpkg-dev dpkg file g++ gcc libc-dev make pkgconf re2c

PHP_ASC_URL

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

58b4cb9019bf70c0cbcdb814c7df79b9065059d14cf7dbf48d971f8e56ae9be7

PHP_URL

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

PHP_VERSION

8.3.14


Layers

[#000] sha256:38a8310d387e375e0ec6fabe047a9149e8eb214073db9f461fee6251fd936a75 - 3.85% (3.48 MB)

[#001] sha256:829171eeaea3e773b34b42be1db246ab6d71e81cd5b7af58edaf0af45f8f926c - 3.53% (3.18 MB)

[#002] sha256:43712f377c73f08aad4de46ede4a0fd2c532d5b84518ae0210844304fc59c141 - 0.0% (944 Bytes)

[#003] sha256:0bcde20c432db81687cd6c2afa1c6fe43c1b3b89a220048be555aaaa4503c1fe - 0.0% (217 Bytes)

[#004] sha256:bc9b1a5909a39716ec6997efa25de016ae4618548cab05a70a9b9c835603e543 - 13.27% (12 MB)

[#005] sha256:3083173f97f0460e8e74b8c96cf5fa17b8e7c15e222fe4c2767203b225d8ea2a - 0.0% (486 Bytes)

[#006] sha256:c5002c5f173d4b923f903acab06ba60c6f55e050c654275697b50473cad4753b - 13.96% (12.6 MB)

[#007] sha256:e9db66f5b974ece17c25c78c5a176787b270677447182bb64456a6a6fa8f1bfe - 0.0% (2.38 KB)

[#008] sha256:f5c3965606e4a76a90675b416aaef63d955540be243db79b2ca705905a90c1fc - 0.02% (19.6 KB)

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

[#010] sha256:aca14e2bab55b53948d7bdd00e9043a00d552e15ac41de11a5291759c9ccaf6a - 0.01% (8.97 KB)

[#011] sha256:766ebbb47207492ab43d5cedcf8b55898569924cc9a7b62b8db856d3f363fbec - 15.48% (14 MB)

[#012] sha256:c19c4503c23d428fb11bfa7461344fa83ed6e9ee256d8964b4176ac472c31b9c - 19.75% (17.8 MB)

[#013] sha256:9cea09f320d0e6f37fc82a3cc676e7873dd89a42b4b10faf394533f5a6520b52 - 0.0% (144 Bytes)

[#014] sha256:936eb1b50bccdd0bbbb69614b36931ed856da86494bb9781494252581a44cfd9 - 30.12% (27.2 MB)

[#015] sha256:87aa0087397878da620f73d07c4b502bd829a8fe3a9dd963bc4ebb748f88033d - 0.01% (6.75 KB)

[#016] sha256:e1848cf3627ed178c599039172bcb9ba099fbebfa4b297e9c6cc09081cd78e2f - 0.0% (411 Bytes)

[#017] sha256:0c1169d3172b684661decef22336b517116c6b746ca46f099305c26c76e92c93 - 0.0% (541 Bytes)

[#018] sha256:717733cc967cee3aa38a6b079e018c4283ae79b5849f700924e5a569c007d93a - 0.0% (1.08 KB)


History
2024-12-05 12:49:04 UTC (buildkit.dockerfile.v0)

ADD alpine-minirootfs-3.21.0-x86_64.tar.gz / # buildkit

2024-12-05 12:49:04 UTC (buildkit.dockerfile.v0)

CMD ["/bin/sh"]

2024-12-07 09:57:27 UTC (buildkit.dockerfile.v0)

ENV PHPIZE_DEPS=autoconf dpkg-dev dpkg file g++ gcc libc-dev make pkgconf re2c

2024-12-07 09:57:27 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c apk add --no-cache ca-certificates curl openssl tar xz # buildkit

2024-12-07 09:57:27 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; adduser -u 82 -D -S -G www-data www-data # buildkit

2024-12-07 09:57:27 UTC (buildkit.dockerfile.v0)

ENV PHP_INI_DIR=/usr/local/etc/php

2024-12-07 09:57:27 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-07 09:57:27 UTC (buildkit.dockerfile.v0)

ENV PHP_CFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64

2024-12-07 09:57:27 UTC (buildkit.dockerfile.v0)

ENV PHP_CPPFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64

2024-12-07 09:57:27 UTC (buildkit.dockerfile.v0)

ENV PHP_LDFLAGS=-Wl,-O1 -pie

2024-12-07 09:57:27 UTC (buildkit.dockerfile.v0)

ENV GPG_KEYS=1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA

2024-12-07 09:57:27 UTC (buildkit.dockerfile.v0)

ENV PHP_VERSION=8.3.14

2024-12-07 09:57:27 UTC (buildkit.dockerfile.v0)

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

2024-12-07 09:57:27 UTC (buildkit.dockerfile.v0)

ENV PHP_SHA256=58b4cb9019bf70c0cbcdb814c7df79b9065059d14cf7dbf48d971f8e56ae9be7

2024-12-07 09:57:27 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-07 09:57:27 UTC (buildkit.dockerfile.v0)

COPY docker-php-source /usr/local/bin/ # buildkit

2024-12-07 09:57:27 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-07 09:57:27 UTC (buildkit.dockerfile.v0)

COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ # buildkit

2024-12-07 09:57:27 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c docker-php-ext-enable sodium # buildkit

2024-12-07 09:57:27 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-php-entrypoint"]

2024-12-07 09:57:27 UTC (buildkit.dockerfile.v0)

WORKDIR /var/www/html

2024-12-07 09:57:27 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-07 09:57:27 UTC (buildkit.dockerfile.v0)

STOPSIGNAL SIGQUIT

2024-12-07 09:57:27 UTC (buildkit.dockerfile.v0)

EXPOSE map[9000/tcp:{}]

2024-12-07 09:57:27 UTC (buildkit.dockerfile.v0)

CMD ["php-fpm"]

2024-12-20 11:22:45 UTC (buildkit.dockerfile.v0)

EXPOSE map[80/tcp:{}]

2024-12-20 11:22:45 UTC (buildkit.dockerfile.v0)

EXPOSE map[8080/tcp:{}]

2024-12-20 11:22:45 UTC (buildkit.dockerfile.v0)

EXPOSE map[8443/tcp:{}]

2024-12-20 11:22:45 UTC (buildkit.dockerfile.v0)

COPY /usr/bin/caddy /usr/bin/caddy # buildkit

2024-12-20 11:22:45 UTC (buildkit.dockerfile.v0)

COPY /usr/local/bin/docker /usr/local/bin/docker # buildkit

2024-12-20 11:22:45 UTC (buildkit.dockerfile.v0)

WORKDIR /var/www/docker-aio

2024-12-20 11:23:03 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

2024-12-20 11:23:03 UTC (buildkit.dockerfile.v0)

COPY --chmod=775 *.sh / # buildkit

2024-12-20 11:23:03 UTC (buildkit.dockerfile.v0)

COPY --chmod=664 Caddyfile /Caddyfile # buildkit

2024-12-20 11:23:03 UTC (buildkit.dockerfile.v0)

COPY --chmod=664 supervisord.conf /supervisord.conf # buildkit

2024-12-20 11:23:03 UTC (buildkit.dockerfile.v0)

COPY mastercontainer.conf /etc/apache2/sites-available/mastercontainer.conf # buildkit

2024-12-20 11:23:03 UTC (buildkit.dockerfile.v0)

USER root

2024-12-20 11:23:03 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["/start.sh"]

2024-12-20 11:23:03 UTC (buildkit.dockerfile.v0)

HEALTHCHECK &{["CMD-SHELL" "/healthcheck.sh"] "0s" "0s" "0s" "0s" '\x00'}

Details
Created

2024-12-20 11:26:03 UTC

Size

89 MB

Content Digest
Environment
GPG_KEYS

1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA

PATH

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

PHPIZE_DEPS

autoconf dpkg-dev dpkg file g++ gcc libc-dev make pkgconf re2c

PHP_ASC_URL

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

58b4cb9019bf70c0cbcdb814c7df79b9065059d14cf7dbf48d971f8e56ae9be7

PHP_URL

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

PHP_VERSION

8.3.14


Layers

[#000] sha256:cb8611c9fe5154550f45e284cf977cda4e2b2fee3478552eee31d84be3c95003 - 4.28% (3.81 MB)

[#001] sha256:f02eb691f526c59a4feade4837dd3c26533d9fe4c9306da60dc23a30620af346 - 3.57% (3.18 MB)

[#002] sha256:05f32f7c87db3a6447e39cf371cb0c2bb2c95f7a814793eff967d2a9a3b95122 - 0.0% (947 Bytes)

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

[#004] sha256:45557a03499ed971bab1cb4471506ac7fb41e936395300859e9b3813f96fa12a - 13.44% (12 MB)

[#005] sha256:038487749d442de33dd989cdddabd91618e5e332b7c1d533e270c49c16ced3f6 - 0.0% (491 Bytes)

[#006] sha256:a6256603888ab73b3da09229460b85a56dd15ae94c369bd781d86aa462a1e348 - 14.13% (12.6 MB)

[#007] sha256:10b89816d315b339ad847dd27219007d928fa11065179622505164843c0b5cad - 0.0% (2.38 KB)

[#008] sha256:eb5624a0890fd5b5e366f5865183be2e4600f55a82aad46845803b6a9e689652 - 0.02% (19.4 KB)

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

[#010] sha256:c0479a54d94ce667b3dee2ef941cd12f8798e5d1e638fb3e6f4ff199269606e3 - 0.01% (8.96 KB)

[#011] sha256:793733e10b7c9cf03473c82d631d170ff42fd8eb8f10c192351443758665a311 - 14.52% (12.9 MB)

[#012] sha256:585afc97357b3fc2cdb1bbac93eaaa3eee44d276f5eea4e814957e603fd73ff4 - 18.88% (16.8 MB)

[#013] sha256:3e3a1c064a3af5c586713c0880edafb56bcad6e81cd3b58f770c6bd7e62d9735 - 0.0% (144 Bytes)

[#014] sha256:44c3be7edc09cd83436c599eccfe40359da21896cbffd17949826c4e2faf4ea9 - 31.13% (27.7 MB)

[#015] sha256:8d21bb47640709f7402ab261c9cca1dae08e95c6d04c94ee4bbb53ffce007d49 - 0.01% (6.75 KB)

[#016] sha256:c0dd61086e026692705f26f986a551916b0ed27e6da0c30597cdeab21316e840 - 0.0% (411 Bytes)

[#017] sha256:e261013964e8d1e0dde8494bac6904b7636dc96b60482f03cf00e2bf1047932c - 0.0% (543 Bytes)

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


History
2024-12-05 12:49:04 UTC (buildkit.dockerfile.v0)

ADD alpine-minirootfs-3.21.0-aarch64.tar.gz / # buildkit

2024-12-05 12:49:04 UTC (buildkit.dockerfile.v0)

CMD ["/bin/sh"]

2024-12-07 09:57:27 UTC (buildkit.dockerfile.v0)

ENV PHPIZE_DEPS=autoconf dpkg-dev dpkg file g++ gcc libc-dev make pkgconf re2c

2024-12-07 09:57:27 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c apk add --no-cache ca-certificates curl openssl tar xz # buildkit

2024-12-07 09:57:27 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; adduser -u 82 -D -S -G www-data www-data # buildkit

2024-12-07 09:57:27 UTC (buildkit.dockerfile.v0)

ENV PHP_INI_DIR=/usr/local/etc/php

2024-12-07 09:57:27 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-07 09:57:27 UTC (buildkit.dockerfile.v0)

ENV PHP_CFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64

2024-12-07 09:57:27 UTC (buildkit.dockerfile.v0)

ENV PHP_CPPFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64

2024-12-07 09:57:27 UTC (buildkit.dockerfile.v0)

ENV PHP_LDFLAGS=-Wl,-O1 -pie

2024-12-07 09:57:27 UTC (buildkit.dockerfile.v0)

ENV GPG_KEYS=1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA

2024-12-07 09:57:27 UTC (buildkit.dockerfile.v0)

ENV PHP_VERSION=8.3.14

2024-12-07 09:57:27 UTC (buildkit.dockerfile.v0)

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

2024-12-07 09:57:27 UTC (buildkit.dockerfile.v0)

ENV PHP_SHA256=58b4cb9019bf70c0cbcdb814c7df79b9065059d14cf7dbf48d971f8e56ae9be7

2024-12-07 09:57:27 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-07 09:57:27 UTC (buildkit.dockerfile.v0)

COPY docker-php-source /usr/local/bin/ # buildkit

2024-12-07 09:57:27 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-07 09:57:27 UTC (buildkit.dockerfile.v0)

COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ # buildkit

2024-12-07 09:57:27 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c docker-php-ext-enable sodium # buildkit

2024-12-07 09:57:27 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-php-entrypoint"]

2024-12-07 09:57:27 UTC (buildkit.dockerfile.v0)

WORKDIR /var/www/html

2024-12-07 09:57:27 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-07 09:57:27 UTC (buildkit.dockerfile.v0)

STOPSIGNAL SIGQUIT

2024-12-07 09:57:27 UTC (buildkit.dockerfile.v0)

EXPOSE map[9000/tcp:{}]

2024-12-07 09:57:27 UTC (buildkit.dockerfile.v0)

CMD ["php-fpm"]

2024-12-20 11:23:20 UTC (buildkit.dockerfile.v0)

EXPOSE map[80/tcp:{}]

2024-12-20 11:23:20 UTC (buildkit.dockerfile.v0)

EXPOSE map[8080/tcp:{}]

2024-12-20 11:23:20 UTC (buildkit.dockerfile.v0)

EXPOSE map[8443/tcp:{}]

2024-12-20 11:23:20 UTC (buildkit.dockerfile.v0)

COPY /usr/bin/caddy /usr/bin/caddy # buildkit

2024-12-20 11:23:20 UTC (buildkit.dockerfile.v0)

COPY /usr/local/bin/docker /usr/local/bin/docker # buildkit

2024-12-20 11:23:20 UTC (buildkit.dockerfile.v0)

WORKDIR /var/www/docker-aio

2024-12-20 11:26:03 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

2024-12-20 11:26:03 UTC (buildkit.dockerfile.v0)

COPY --chmod=775 *.sh / # buildkit

2024-12-20 11:26:03 UTC (buildkit.dockerfile.v0)

COPY --chmod=664 Caddyfile /Caddyfile # buildkit

2024-12-20 11:26:03 UTC (buildkit.dockerfile.v0)

COPY --chmod=664 supervisord.conf /supervisord.conf # buildkit

2024-12-20 11:26:03 UTC (buildkit.dockerfile.v0)

COPY mastercontainer.conf /etc/apache2/sites-available/mastercontainer.conf # buildkit

2024-12-20 11:26:03 UTC (buildkit.dockerfile.v0)

USER root

2024-12-20 11:26:03 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["/start.sh"]

2024-12-20 11:26:03 UTC (buildkit.dockerfile.v0)

HEALTHCHECK &{["CMD-SHELL" "/healthcheck.sh"] "0s" "0s" "0s" "0s" '\x00'}

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