Namespace
kodcloud
Image / Tag
kodbox:1.52
Content Digest
sha256:1d2f58862ab6cb455849b145a11d18340fbd31378442cea199af5f1786d34019
Details
Created

2024-07-30 14:38:12 +0800

Size

163 MB

Content Digest
Environment
GPG_KEYS

39B641343D8C104B2B146DC3F9C39DC0B9698544 E60913E4DF209907D8E30D96659A97C9CF2A795A 1198C0117593497A5EC5C199286AF1F9897469DC

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

8cc44d51bb2506399ec176f70fe110f0c9e1f7d852a5303a2cd1403402199707

PHP_URL

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

PHP_VERSION

8.2.21

fpm_conf

/usr/local/etc/php-fpm.d/www.conf

php_vars

/usr/local/etc/php/conf.d/docker-vars.ini


Layers

[#000] sha256:c6a83fedfae6ed8a4f5f7cbb6a7b6f1c1ec3d86fea8cb9e5ba2e5e6673fde9f6 - 2.12% (3.46 MB)

[#001] sha256:3ae0d9dfc4dada15e6a030ba7b9c9a3b16f9f5a7597a4d46ff24226e91b91db7 - 1.92% (3.12 MB)

[#002] sha256:ce295ca8623e5dc914104e970c5496db996db5f2abb336389bcbadd10465d21d - 0.0% (941 Bytes)

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

[#004] sha256:635d128c0149d90bf6bbcb68374d62ce105a32b887d578601aa6e7b832951332 - 7.1% (11.6 MB)

[#005] sha256:25fe58b8606cc2aac914e87f8692813b7730d574986a38fc967e4303f33d19c8 - 0.0% (498 Bytes)

[#006] sha256:90b7faae5cc87a3901fcef80dd34f41dc6d2c982374080ed3b289c5266131393 - 7.53% (12.3 MB)

[#007] sha256:6684dca35c367fc188c759725c96a45fca0cc024d494305019d5065594371600 - 0.0% (2.39 KB)

[#008] sha256:73658442ebe0c8dd02f493221a263ce0e60b4fa69c3052b63204140cad922cb8 - 0.01% (19.2 KB)

[#009] sha256:9ed939a767db3984f698c00bf8783c05913cdb843e62711921b08be3863bfb29 - 0.01% (8.96 KB)

[#010] sha256:991d313d4652044baba556760c86a66983004d7139508ee061dfc1cf69f6fd18 - 0.0% (201 Bytes)

[#011] sha256:0a8ec00d949db945081b2546fca853d33e7eacf72d033134e9b026255d28741b - 41.88% (68.2 MB)

[#012] sha256:11152149c24574394c50d00d77402629513cae75d5974e9c52edfce99f5f28bb - 0.0% (865 Bytes)

[#013] sha256:125d5032ffa578daba5f03264c71e8d02124b87b87e6e574b0958f88e67e9675 - 0.0% (150 Bytes)

[#014] sha256:3a16b373749ef4c46ecda248ce542ba157d47d2d23ba6232cb407e51a16637f1 - 0.0% (1.82 KB)

[#015] sha256:e7abe670962716d87fcd5699903bcac5b407ad91f3ead61dd1033d06d3acd8f5 - 0.0% (411 Bytes)

[#016] sha256:8ac507473e199cbd23331a6e9411d0d4feeb331e768ea42feea8dc27ce9673e5 - 0.0% (1.13 KB)

[#017] sha256:ce14bce3a680cf9ea195c2acf901d03a56fba44e2084d0b70dcec005e5192842 - 3.59% (5.84 MB)

[#018] sha256:7df5cabd5a7b61568673edb9294bc96ef987e06920a4c1bb8ca019707485a6ba - 0.0% (7.25 KB)

[#019] sha256:f8b39b48604896fcc329705b12c45703cc93f752bda80518f5e35a47ae8cb68f - 35.84% (58.4 MB)

[#020] sha256:4180a077edac871e35ca402ba98bd86d9636b50c454352b6f3aae726abb9065b - 0.0% (2.75 KB)


History
2024-07-22 22:26:43 UTC

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

2024-07-22 22:26:43 UTC

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

2024-07-23 01:21:12 UTC

/bin/sh -c #(nop) ENV PHPIZE_DEPS=autoconf dpkg-dev dpkg file g++ gcc libc-dev make pkgconf re2c

2024-07-23 01:21:14 UTC

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

2024-07-23 01:21:14 UTC

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

2024-07-23 01:21:14 UTC

/bin/sh -c #(nop) ENV PHP_INI_DIR=/usr/local/etc/php

2024-07-23 01:21:15 UTC

/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

2024-07-23 01:21:15 UTC

/bin/sh -c #(nop) ENV PHP_CFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64

2024-07-23 01:21:15 UTC

/bin/sh -c #(nop) ENV PHP_CPPFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64

2024-07-23 01:21:15 UTC

/bin/sh -c #(nop) ENV PHP_LDFLAGS=-Wl,-O1 -pie

2024-07-23 02:37:28 UTC

/bin/sh -c #(nop) ENV GPG_KEYS=39B641343D8C104B2B146DC3F9C39DC0B9698544 E60913E4DF209907D8E30D96659A97C9CF2A795A 1198C0117593497A5EC5C199286AF1F9897469DC

2024-07-23 03:02:44 UTC

/bin/sh -c #(nop) ENV PHP_VERSION=8.2.21

2024-07-23 03:02:44 UTC

/bin/sh -c #(nop) ENV PHP_URL=https://www.php.net/distributions/php-8.2.21.tar.xz PHP_ASC_URL=https://www.php.net/distributions/php-8.2.21.tar.xz.asc

2024-07-23 03:02:45 UTC

/bin/sh -c #(nop) ENV PHP_SHA256=8cc44d51bb2506399ec176f70fe110f0c9e1f7d852a5303a2cd1403402199707

2024-07-23 03:02:50 UTC

/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

2024-07-23 03:02:50 UTC

/bin/sh -c #(nop) COPY file:ce57c04b70896f77cc11eb2766417d8a1240fcffe5bba92179ec78c458844110 in /usr/local/bin/

2024-07-23 03:10:44 UTC

/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 $(test "$gnuArch" = 'riscv64-linux-musl' && echo '--without-pcre-jit') --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

2024-07-23 03:10:45 UTC

/bin/sh -c #(nop) COPY multi:869bde9dbeae74886a05c9e2107b3e3b4877116db8c6d9adbaff2719f9fb5262 in /usr/local/bin/

2024-07-23 03:10:46 UTC

/bin/sh -c docker-php-ext-enable sodium

2024-07-23 03:10:46 UTC

/bin/sh -c #(nop) ENTRYPOINT ["docker-php-entrypoint"]

2024-07-23 03:10:46 UTC

/bin/sh -c #(nop) WORKDIR /var/www/html

2024-07-23 03:10:47 UTC

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

2024-07-23 03:10:47 UTC

/bin/sh -c #(nop) STOPSIGNAL SIGQUIT

2024-07-23 03:10:47 UTC

/bin/sh -c #(nop) EXPOSE 9000

2024-07-23 03:10:47 UTC

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

2024-07-29 14:29:48 +0800 (buildkit.dockerfile.v0)

RUN /bin/sh -c sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories # buildkit

2024-07-29 14:32:25 +0800 (buildkit.dockerfile.v0)

RUN /bin/sh -c set -ex; apk update && apk upgrade && apk add --no-cache bash rsync supervisor imagemagick ffmpeg tzdata unzip nginx coreutils && ln -sf /dev/stdout /var/log/nginx/access.log && ln -sf /dev/stderr /var/log/nginx/error.log && mkdir -p /run/nginx && mkdir -p /var/log/supervisor && cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo "Asia/Shanghai" > /etc/timezone # buildkit

2024-07-29 14:32:25 +0800 (buildkit.dockerfile.v0)

ADD conf/supervisord.conf /etc/supervisord.conf # buildkit

2024-07-29 14:32:25 +0800 (buildkit.dockerfile.v0)

RUN /bin/sh -c rm -Rf /etc/nginx/nginx.conf # buildkit

2024-07-29 14:32:25 +0800 (buildkit.dockerfile.v0)

ADD conf/nginx.conf /etc/nginx/nginx.conf # buildkit

2024-07-29 14:32:25 +0800 (buildkit.dockerfile.v0)

RUN /bin/sh -c mkdir -p /etc/nginx/sites-available/; mkdir -p /etc/nginx/sites-enabled/; mkdir -p /etc/nginx/ssl/; rm -Rf /var/www/*; mkdir /var/www/html/; mkdir -p /docker-entrypoint-hooks.d/pre-installation /docker-entrypoint-hooks.d/post-installation /docker-entrypoint-hooks.d/pre-upgrade /docker-entrypoint-hooks.d/post-upgrade /docker-entrypoint-hooks.d/before-starting; chown -R nginx:root /var/www; chmod -R g=u /var/www # buildkit

2024-07-29 14:32:25 +0800 (buildkit.dockerfile.v0)

ADD conf/private-ssl.conf /etc/nginx/sites-available/private-ssl.conf # buildkit

2024-07-29 14:39:33 +0800 (buildkit.dockerfile.v0)

RUN /bin/sh -c set -ex; apk add --no-cache --virtual .build-deps $PHPIZE_DEPS autoconf freetype-dev icu-dev libevent-dev libjpeg-turbo-dev libmcrypt-dev libpng-dev libmemcached-dev libxml2-dev libzip-dev openldap-dev pcre-dev libwebp-dev bzip2-dev gettext-dev curl-dev imagemagick-dev ; docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp; docker-php-ext-configure intl; docker-php-ext-configure ldap; docker-php-ext-install -j "$(nproc)" bcmath exif gd intl ldap opcache pcntl pdo_mysql mysqli zip bz2 gettext ; pecl install memcached-3.2.0; pecl install redis-6.0.2; docker-php-ext-enable memcached redis ; 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-network --virtual .kodbox-phpext-rundeps $runDeps; apk del --no-network .build-deps # buildkit

2024-07-29 14:39:33 +0800 (buildkit.dockerfile.v0)

ENV fpm_conf=/usr/local/etc/php-fpm.d/www.conf

2024-07-29 14:39:33 +0800 (buildkit.dockerfile.v0)

ENV php_vars=/usr/local/etc/php/conf.d/docker-vars.ini

2024-07-29 14:39:33 +0800 (buildkit.dockerfile.v0)

RUN /bin/sh -c { echo 'opcache.enable=1'; echo 'opcache.interned_strings_buffer=32'; echo 'opcache.max_accelerated_files=10000'; echo 'opcache.memory_consumption=128'; echo 'opcache.save_comments=1'; echo 'opcache.revalidate_freq=60'; echo 'opcache.jit=1255'; echo 'opcache.jit_buffer_size=128M'; } > "${PHP_INI_DIR}/conf.d/opcache-recommended.ini"; echo "cgi.fix_pathinfo=1" > ${php_vars} && echo "upload_max_filesize = 512M" >> ${php_vars} && echo "post_max_size = 512M" >> ${php_vars} && echo "memory_limit = 512M" >> ${php_vars} && echo "max_execution_time = 3600" >> ${php_vars} && echo "max_input_time = 3600" >> ${php_vars} && sed -i -e "s/;catch_workers_output\s*=\s*yes/catch_workers_output = yes/g" -e "s/pm.max_children = 5/pm.max_children = 50/g" -e "s/pm.start_servers = 2/pm.start_servers = 10/g" -e "s/pm.min_spare_servers = 1/pm.min_spare_servers = 10/g" -e "s/pm.max_spare_servers = 3/pm.max_spare_servers = 30/g" -e "s/;pm.max_requests = 500/pm.max_requests = 500/g" -e "s/user = www-data/user = nginx/g" -e "s/group = www-data/group = nginx/g" -e "s/;listen.mode = 0660/listen.mode = 0666/g" -e "s/;listen.owner = www-data/listen.owner = nginx/g" -e "s/;listen.group = www-data/listen.group = nginx/g" -e "s/listen = 127.0.0.1:9000/listen = \/var\/run\/php-fpm.sock/g" -e "s/^;clear_env = no$/clear_env = no/" ${fpm_conf} # buildkit

2024-07-29 14:39:33 +0800 (buildkit.dockerfile.v0)

VOLUME [/var/www/html]

2024-07-29 14:39:41 +0800 (buildkit.dockerfile.v0)

RUN /bin/sh -c set -ex; curl -fsSL -o kodbox.zip "https://api.kodcloud.com/?app/version&download=server.link"; unzip kodbox.zip -d /usr/src/kodbox/; curl -fsSL -o update.zip "https://api.kodcloud.com/?app/version&download=server.linkUpdate"; mv update.zip /usr/src/kodbox/; sed -i "s/MyISAM/InnoDB/g" /usr/src/kodbox/app/controller/install/data/mysql.sql; rm kodbox.zip # buildkit

2024-07-30 14:38:12 +0800 (buildkit.dockerfile.v0)

COPY entrypoint.sh / # buildkit

2024-07-30 14:38:12 +0800 (buildkit.dockerfile.v0)

EXPOSE map[443/tcp:{} 80/tcp:{}]

2024-07-30 14:38:12 +0800 (buildkit.dockerfile.v0)

ENTRYPOINT ["/entrypoint.sh"]

2024-07-30 14:38:12 +0800 (buildkit.dockerfile.v0)

CMD ["supervisord" "-n" "-c" "/etc/supervisord.conf"]

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