Namespace
nextcloud
Image / Tag
all-in-one:20250204_102259
Content Digest
sha256:f23345999de82dc3fbf77f3d0d6315dacdc0656e5fab84cc6421f5509372b40c
Details
Created

2025-01-28 12:07:02 UTC

Size

89.7 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.16.tar.xz.asc

PHP_CFLAGS

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

PHP_CPPFLAGS

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

PHP_INI_DIR

/usr/local/etc/php

PHP_LDFLAGS

-Wl,-O1 -pie

PHP_SHA256

40d3b4e6cac33d3bcefe096d75a28d4fb4e3a9615eb20a4de55ba139fbfacdd5

PHP_URL

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

PHP_VERSION

8.3.16


Layers

[#000] sha256:1f3e46996e2966e4faa5846e56e76e3748b7315e2ded61476c24403d592134f0 - 3.87% (3.47 MB)

[#001] sha256:ae49de6b59a3ada68038915c6ced5c3fe9a4d9734c795f5a290799df9bd4beaf - 3.55% (3.18 MB)

[#002] sha256:71cba018865568c1d0e52317c42c2372693e63212bbfa9fdef74f0c36c092346 - 0.0% (942 Bytes)

[#003] sha256:fe8c926c51f944e1f73fd121e3ad6f36a2e3123fc91798822958f3a06b35df2d - 0.0% (215 Bytes)

[#004] sha256:a294ad2fc4eb0744141cbe376c87751574ed0855e5b42d9e2387d5eac2b3bfd8 - 13.36% (12 MB)

[#005] sha256:40cc7f0f5d0d50ab5cd390cd67c5019f95bc45bbd11f47693935c52fffcc25b4 - 0.0% (487 Bytes)

[#006] sha256:bf65272aeb380d63ca16f6621ea3bc1d8d9030fef6e0ff42c422894fc45c1ab5 - 14.04% (12.6 MB)

[#007] sha256:571b396ed0cd01828f98f7e5a13d4df7250f2e4797a89f0f390ce47365a55a9c - 0.0% (2.39 KB)

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

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

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

[#011] sha256:6ff8aae25541a4e62226d4cba1ca57cf210af3a3c7af67167cdeb6ed902186cd - 15.29% (13.7 MB)

[#012] sha256:685243ff4d6f4fa41725cd5b2b5de19ec108dee4ec81a2481014bf6896deef86 - 20.05% (18 MB)

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

[#014] sha256:ef00f34369c4adcea54c215fe9fcd6bac277d9740c95629509181a02a44dcb39 - 29.79% (26.7 MB)

[#015] sha256:c836df90b784ffb933bb69cb16f0a8ee7c832ed61c94e7698c04a81f99a2ccf3 - 0.01% (6.84 KB)

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

[#017] sha256:c5ceee060e7665821e9af591da53c5f4c21e2a8dd94b026a6654166ee8c1d779 - 0.0% (544 Bytes)

[#018] sha256:876821abb81ba275561cb3974dd019e03fa2d3ab3975b50a6bfd53b245eea7b0 - 0.0% (1.08 KB)


History
2025-01-08 12:07:30 UTC (buildkit.dockerfile.v0)

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

2025-01-08 12:07:30 UTC (buildkit.dockerfile.v0)

CMD ["/bin/sh"]

2025-01-16 17:19:20 UTC (buildkit.dockerfile.v0)

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

2025-01-16 17:19:20 UTC (buildkit.dockerfile.v0)

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

2025-01-16 17:19:20 UTC (buildkit.dockerfile.v0)

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

2025-01-16 17:19:20 UTC (buildkit.dockerfile.v0)

ENV PHP_INI_DIR=/usr/local/etc/php

2025-01-16 17:19:20 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

2025-01-16 17:19:20 UTC (buildkit.dockerfile.v0)

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

2025-01-16 17:19:20 UTC (buildkit.dockerfile.v0)

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

2025-01-16 17:19:20 UTC (buildkit.dockerfile.v0)

ENV PHP_LDFLAGS=-Wl,-O1 -pie

2025-01-16 17:19:20 UTC (buildkit.dockerfile.v0)

ENV GPG_KEYS=1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA

2025-01-16 17:19:20 UTC (buildkit.dockerfile.v0)

ENV PHP_VERSION=8.3.16

2025-01-16 17:19:20 UTC (buildkit.dockerfile.v0)

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

2025-01-16 17:19:20 UTC (buildkit.dockerfile.v0)

ENV PHP_SHA256=40d3b4e6cac33d3bcefe096d75a28d4fb4e3a9615eb20a4de55ba139fbfacdd5

2025-01-16 17:19:20 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

2025-01-16 17:19:20 UTC (buildkit.dockerfile.v0)

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

2025-01-16 17:19:20 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

2025-01-16 17:19:20 UTC (buildkit.dockerfile.v0)

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

2025-01-16 17:19:20 UTC (buildkit.dockerfile.v0)

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

2025-01-16 17:19:20 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-php-entrypoint"]

2025-01-16 17:19:20 UTC (buildkit.dockerfile.v0)

WORKDIR /var/www/html

2025-01-16 17:19:20 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

2025-01-16 17:19:20 UTC (buildkit.dockerfile.v0)

STOPSIGNAL SIGQUIT

2025-01-16 17:19:20 UTC (buildkit.dockerfile.v0)

EXPOSE map[9000/tcp:{}]

2025-01-16 17:19:20 UTC (buildkit.dockerfile.v0)

CMD ["php-fpm"]

2025-01-28 12:06:40 UTC (buildkit.dockerfile.v0)

EXPOSE map[80/tcp:{}]

2025-01-28 12:06:40 UTC (buildkit.dockerfile.v0)

EXPOSE map[8080/tcp:{}]

2025-01-28 12:06:40 UTC (buildkit.dockerfile.v0)

EXPOSE map[8443/tcp:{}]

2025-01-28 12:06:40 UTC (buildkit.dockerfile.v0)

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

2025-01-28 12:06:41 UTC (buildkit.dockerfile.v0)

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

2025-01-28 12:06:41 UTC (buildkit.dockerfile.v0)

WORKDIR /var/www/docker-aio

2025-01-28 12:07:02 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-28 12:07:02 UTC (buildkit.dockerfile.v0)

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

2025-01-28 12:07:02 UTC (buildkit.dockerfile.v0)

COPY --chmod=664 Caddyfile /Caddyfile # buildkit

2025-01-28 12:07:02 UTC (buildkit.dockerfile.v0)

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

2025-01-28 12:07:02 UTC (buildkit.dockerfile.v0)

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

2025-01-28 12:07:02 UTC (buildkit.dockerfile.v0)

USER root

2025-01-28 12:07:02 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["/start.sh"]

2025-01-28 12:07:02 UTC (buildkit.dockerfile.v0)

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

Details
Created

2025-01-28 12:07:55 UTC

Size

88.5 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.16.tar.xz.asc

PHP_CFLAGS

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

PHP_CPPFLAGS

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

PHP_INI_DIR

/usr/local/etc/php

PHP_LDFLAGS

-Wl,-O1 -pie

PHP_SHA256

40d3b4e6cac33d3bcefe096d75a28d4fb4e3a9615eb20a4de55ba139fbfacdd5

PHP_URL

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

PHP_VERSION

8.3.16


Layers

[#000] sha256:52f827f723504aa3325bb5a54247f0dc4b92bb72569525bc951532c4ef679bd4 - 4.3% (3.81 MB)

[#001] sha256:0a259b492a8c3558416dd48f8aad1dda78fda9cef38298295c5e43623b56a18c - 3.59% (3.17 MB)

[#002] sha256:549c6a796a4d698d720516d98efaded2b858014b8a81418484745626b542df1b - 0.0% (942 Bytes)

[#003] sha256:5e06c334c2725cc400bba17c21a0380b9f9c970473c4959000a3921b22cdf4a8 - 0.0% (217 Bytes)

[#004] sha256:ce86ef064edc436017f8d7adf39a34791690aa9358ada4968c2846dc852ca8a5 - 13.54% (12 MB)

[#005] sha256:82573dd219577096ad073ab5cc5aec03711465792e841e32a69de3f869ad15db - 0.0% (494 Bytes)

[#006] sha256:1bbbae26bb0f5db0f77bfe9fcba38e8bcc044c378146650d12820205ac9a1e6f - 14.22% (12.6 MB)

[#007] sha256:5c60f0abd9ea38dd6ecb2f0cb65f214d431a2b1baf0daa5356300de042fbf19e - 0.0% (2.39 KB)

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

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

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

[#011] sha256:61b36e2a35d754ed8f7edce75e3d6c100e534963b5b888abf8fb4cb6cd18e9a7 - 14.33% (12.7 MB)

[#012] sha256:50b0b3c500b652aa367561533b32ea161382543780956396aa99186f8c9b655e - 19.18% (17 MB)

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

[#014] sha256:3c0285aaada4959e21015d230831434bc7655eb7485f2663ff2ab2e754376a2f - 30.79% (27.3 MB)

[#015] sha256:cf88a4b8aa58624e0b6f101d70ab4646a45f68c2c2dc55b3778b3a43c19d609b - 0.01% (6.83 KB)

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

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

[#018] sha256:155cfa2ddbf68b21843a6d82b76aadb25b40e993afab8ff2bc34d4ac8256cf62 - 0.0% (1.08 KB)


History
2025-01-08 12:07:30 UTC (buildkit.dockerfile.v0)

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

2025-01-08 12:07:30 UTC (buildkit.dockerfile.v0)

CMD ["/bin/sh"]

2025-01-16 17:19:20 UTC (buildkit.dockerfile.v0)

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

2025-01-16 17:19:20 UTC (buildkit.dockerfile.v0)

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

2025-01-16 17:19:20 UTC (buildkit.dockerfile.v0)

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

2025-01-16 17:19:20 UTC (buildkit.dockerfile.v0)

ENV PHP_INI_DIR=/usr/local/etc/php

2025-01-16 17:19:20 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

2025-01-16 17:19:20 UTC (buildkit.dockerfile.v0)

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

2025-01-16 17:19:20 UTC (buildkit.dockerfile.v0)

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

2025-01-16 17:19:20 UTC (buildkit.dockerfile.v0)

ENV PHP_LDFLAGS=-Wl,-O1 -pie

2025-01-16 17:19:20 UTC (buildkit.dockerfile.v0)

ENV GPG_KEYS=1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA

2025-01-16 17:19:20 UTC (buildkit.dockerfile.v0)

ENV PHP_VERSION=8.3.16

2025-01-16 17:19:20 UTC (buildkit.dockerfile.v0)

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

2025-01-16 17:19:20 UTC (buildkit.dockerfile.v0)

ENV PHP_SHA256=40d3b4e6cac33d3bcefe096d75a28d4fb4e3a9615eb20a4de55ba139fbfacdd5

2025-01-16 17:19:20 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

2025-01-16 17:19:20 UTC (buildkit.dockerfile.v0)

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

2025-01-16 17:19:20 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

2025-01-16 17:19:20 UTC (buildkit.dockerfile.v0)

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

2025-01-16 17:19:20 UTC (buildkit.dockerfile.v0)

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

2025-01-16 17:19:20 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-php-entrypoint"]

2025-01-16 17:19:20 UTC (buildkit.dockerfile.v0)

WORKDIR /var/www/html

2025-01-16 17:19:20 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

2025-01-16 17:19:20 UTC (buildkit.dockerfile.v0)

STOPSIGNAL SIGQUIT

2025-01-16 17:19:20 UTC (buildkit.dockerfile.v0)

EXPOSE map[9000/tcp:{}]

2025-01-16 17:19:20 UTC (buildkit.dockerfile.v0)

CMD ["php-fpm"]

2025-01-28 12:07:36 UTC (buildkit.dockerfile.v0)

EXPOSE map[80/tcp:{}]

2025-01-28 12:07:36 UTC (buildkit.dockerfile.v0)

EXPOSE map[8080/tcp:{}]

2025-01-28 12:07:36 UTC (buildkit.dockerfile.v0)

EXPOSE map[8443/tcp:{}]

2025-01-28 12:07:36 UTC (buildkit.dockerfile.v0)

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

2025-01-28 12:07:36 UTC (buildkit.dockerfile.v0)

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

2025-01-28 12:07:36 UTC (buildkit.dockerfile.v0)

WORKDIR /var/www/docker-aio

2025-01-28 12:07:54 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-28 12:07:54 UTC (buildkit.dockerfile.v0)

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

2025-01-28 12:07:54 UTC (buildkit.dockerfile.v0)

COPY --chmod=664 Caddyfile /Caddyfile # buildkit

2025-01-28 12:07:55 UTC (buildkit.dockerfile.v0)

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

2025-01-28 12:07:55 UTC (buildkit.dockerfile.v0)

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

2025-01-28 12:07:55 UTC (buildkit.dockerfile.v0)

USER root

2025-01-28 12:07:55 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["/start.sh"]

2025-01-28 12:07:55 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