2021-03-30 17:11:15 UTC
94.2 MB
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PHPIZE_DEPSautoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c bison
PHP_INI_DIR/usr/local/etc/php
[#000] sha256:b9a857cbf04d2c0d2f0f6b73e894b20a977a6d3b6edd9e27d080e03142954950 - 51.01% (48.1 MB)
[#001] sha256:bea73d214b113f4facedec7a65a923d16a308e81a9849e20053b8378731aebbb - 48.99% (46.2 MB)
[#002] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)
/bin/sh -c #(nop) ADD file:53e587afdbeaee60cc14bd95907f14c8303c04b98c72f98e2c54d4343f15dd38 in /
2021-01-12 00:32:37 UTC/bin/sh -c #(nop) CMD ["bash"]
2021-03-30 17:11:15 UTC (buildkit.dockerfile.v0)LABEL maintainer=phithon <root@leavesongs.com>
2021-03-30 17:11:15 UTC (buildkit.dockerfile.v0)ENV PHP_INI_DIR=/usr/local/etc/php
2021-03-30 17:11:15 UTC (buildkit.dockerfile.v0)ENV PHPIZE_DEPS=autoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c bison
2021-03-30 17:11:15 UTC (buildkit.dockerfile.v0)ARG PHP_URL=https://github.com/php/php-src/archive/c730aa26bd52829a49f2ad284b181b7e82a68d7d.tar.gz
2021-03-30 17:11:15 UTC (buildkit.dockerfile.v0)RUN |1 PHP_URL=https://github.com/php/php-src/archive/c730aa26bd52829a49f2ad284b181b7e82a68d7d.tar.gz /bin/sh -c set -eux && mkdir -p $PHP_INI_DIR/conf.d && savedAptMark="$(apt-mark showmanual)" && apt-get update && apt-get install -y --no-install-recommends ${PHPIZE_DEPS} ca-certificates curl wget libargon2-dev libcurl4-openssl-dev libedit-dev libonig-dev libsodium-dev libsqlite3-dev libssl-dev libxml2-dev zlib1g-dev && mkdir -p /usr/src && cd /usr/src && curl -#SL ${PHP_URL} | tar xz --strip-components=1 && gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" && debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)" && if [ ! -d /usr/include/curl ]; then ln -sT "/usr/include/$debMultiarch/curl" /usr/local/include/curl; fi && ./buildconf && ./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-ftp --enable-mbstring --enable-mysqlnd --with-password-argon2 --with-sodium=shared --with-pdo-sqlite=/usr --with-sqlite3=/usr --with-curl --with-libedit --with-openssl --with-zlib $(test "$gnuArch" = 's390x-linux-gnu' && echo '--without-pcre-jit') --with-libdir="lib/$debMultiarch" && make -j "$(nproc)" && make install && find /usr/local/bin /usr/local/sbin -type f -executable -exec strip --strip-all '{}' + || true && make clean && cd / && apt-mark auto '.*' > /dev/null && [ -z "$savedAptMark" ] || apt-mark manual $savedAptMark && find /usr/local -type f -executable -exec ldd '{}' ';' | awk '/=>/ { print $(NF-1) }' | sort -u | xargs -r dpkg-query --search | cut -d: -f1 | sort -u | xargs -r apt-mark manual && apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false && php --version && rm -rf /usr/src/* && mkdir -p /var/www/html # buildkit
2021-03-30 17:11:15 UTC (buildkit.dockerfile.v0)WORKDIR /var/www/html
2021-03-30 17:11:15 UTC (buildkit.dockerfile.v0)CMD ["php" "-S" "0.0.0.0:80" "-t" "/var/www/html"]
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.