Namespace
vulhub
Image / Tag
thinkphp:5.0.20
Content Digest
sha256:aa12db1b982c92cfd599bc982c1244a4f7d34997461398b1a239df079558d56c
Details
Created

2020-06-09 12:58:19 UTC

Size

158 MB

Content Digest
Environment
APACHE_CONFDIR

/etc/apache2

APACHE_DOCUMENT_ROOT

/var/www/public

APACHE_ENVVARS

/etc/apache2/envvars

GPG_KEYS

1729F83938DA44E27BA0F4D3DBDB397470D12172 B1B44D8F021E4E2D6021E995DC9FF8D3EE5AF27F

PATH

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

PHPIZE_DEPS

autoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c

PHP_ASC_URL

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

apache2-dev

PHP_EXTRA_CONFIGURE_ARGS

--with-apxs2 --disable-cgi

PHP_INI_DIR

/usr/local/etc/php

PHP_LDFLAGS

-Wl,-O1 -pie

PHP_MD5

PHP_SHA256

8beaa634bb878a96af9bc8643811ea46973f5f41ad2bfb6ab4cfd290e5a39806

PHP_URL

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

PHP_VERSION

7.2.31


Layers

[#000] sha256:afb6ec6fdc1c3ba04f7a56db32c5ff5ff38962dc4cd0ffdef5beaa0ce2eb77e2 - 16.41% (25.8 MB)

[#001] sha256:3d895574014b07620962dc74d8e480e4629fbb3afb45c2bf57249a6ec1a0e64c - 0.0% (225 Bytes)

[#002] sha256:c309fdad64103ed6195af8392df8834b3ba6c40ff2070a2230d835960c41e10b - 46.41% (73.1 MB)

[#003] sha256:c201f6a5d6f95f92d66f943b5413d3637ec1fce1735885558bca16f7302bfaed - 0.0% (224 Bytes)

[#004] sha256:e87f853892aac5282dcd651f71ce35d32c4f66c6c1e6864a13b10100dff4c1d5 - 11.31% (17.8 MB)

[#005] sha256:998b2113b4005b0fc3cd483f8ec5e00202376f2b89a050cd742fc37627e40537 - 0.0% (433 Bytes)

[#006] sha256:b3c0b4710d3bfd982a9a2fc845001e73b11043e83f3618713bbc5ed47218462c - 0.0% (488 Bytes)

[#007] sha256:4e342cb20e11a1dd9d7c623fa9432bd079fde2b090476b3134baf0c21d40612a - 7.66% (12.1 MB)

[#008] sha256:c591e1fe994da44df77bd8b6ad18ed428e3d1e7f76c83349d61cf8fa06beab4d - 0.0% (492 Bytes)

[#009] sha256:e231d94c7c66658f89cc128cad35ec1e8e08f2bba42fd7ca4c2d1933d66910ac - 8.37% (13.2 MB)

[#010] sha256:2bef45ec77068806c1e35a449069901a6954df90f88b07ea92c53a74d4a87181 - 0.0% (2.23 KB)

[#011] sha256:88824dfd94bf4cb4cbac4f54a87435f9f79999b2e5ddf6237e79a72e76345bb5 - 0.0% (251 Bytes)

[#012] sha256:fb56cee4a9e8f3c545a9583d5e54b1f5f9eec02031193cfd4ee7b375428d3c1e - 0.0% (216 Bytes)

[#013] sha256:06aa9edfc095da1a62d22209cc50524637a488f110e3b576bb336ecc5763a5d6 - 0.0% (898 Bytes)

[#014] sha256:d920926e4c38a6de0d7a903032373ee6005e0c44ffe1916a7db392a93c21482d - 0.29% (468 KB)

[#015] sha256:3a9423002b9e4af955e870d40b60bc54c6045b5e9c6eaa5b53108c04589c3a60 - 0.01% (19.5 KB)

[#016] sha256:8c0b70af9b5db04d3c0297f1c614177dee1d68a81293ae1adb740757838628a9 - 0.0% (462 Bytes)

[#017] sha256:6e35b3948952efbbf9f23095dd4a77dc0b4d0a852c2050bd0c3d071578b3aa1c - 9.54% (15 MB)


History
2020-05-15 06:28:44 UTC

/bin/sh -c #(nop) ADD file:7780c81c33e6cc5b6261af4a6c611cce0f39dec3131009bb297e65f12020c150 in /

2020-05-15 06:28:44 UTC

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

2020-05-15 12:41:16 UTC

/bin/sh -c set -eux; { echo 'Package: php*'; echo 'Pin: release *'; echo 'Pin-Priority: -1'; } > /etc/apt/preferences.d/no-debian-php

2020-05-15 12:41:17 UTC

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

2020-05-15 12:41:48 UTC

/bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends $PHPIZE_DEPS ca-certificates curl xz-utils ; rm -rf /var/lib/apt/lists/*

2020-05-15 12:41:49 UTC

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

2020-05-15 12:41:50 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 777 /var/www/html

2020-05-15 12:49:08 UTC

/bin/sh -c #(nop) ENV APACHE_CONFDIR=/etc/apache2

2020-05-15 12:49:08 UTC

/bin/sh -c #(nop) ENV APACHE_ENVVARS=/etc/apache2/envvars

2020-05-15 12:49:23 UTC

/bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends apache2; rm -rf /var/lib/apt/lists/*; sed -ri 's/^export ([^=]+)=(.*)$/: ${\1:=\2}\nexport \1/' "$APACHE_ENVVARS"; . "$APACHE_ENVVARS"; for dir in "$APACHE_LOCK_DIR" "$APACHE_RUN_DIR" "$APACHE_LOG_DIR" ; do rm -rvf "$dir"; mkdir -p "$dir"; chown "$APACHE_RUN_USER:$APACHE_RUN_GROUP" "$dir"; chmod 777 "$dir"; done; rm -rvf /var/www/html/*; ln -sfT /dev/stderr "$APACHE_LOG_DIR/error.log"; ln -sfT /dev/stdout "$APACHE_LOG_DIR/access.log"; ln -sfT /dev/stdout "$APACHE_LOG_DIR/other_vhosts_access.log"; chown -R --no-dereference "$APACHE_RUN_USER:$APACHE_RUN_GROUP" "$APACHE_LOG_DIR"

2020-05-15 12:49:25 UTC

/bin/sh -c a2dismod mpm_event && a2enmod mpm_prefork

2020-05-15 12:49:26 UTC

/bin/sh -c { echo '<FilesMatch \.php$>'; echo '\tSetHandler application/x-httpd-php'; echo '</FilesMatch>'; echo; echo 'DirectoryIndex disabled'; echo 'DirectoryIndex index.php index.html'; echo; echo '<Directory /var/www/>'; echo '\tOptions -Indexes'; echo '\tAllowOverride All'; echo '</Directory>'; } | tee "$APACHE_CONFDIR/conf-available/docker-php.conf" && a2enconf docker-php

2020-05-15 12:49:26 UTC

/bin/sh -c #(nop) ENV PHP_EXTRA_BUILD_DEPS=apache2-dev

2020-05-15 12:49:27 UTC

/bin/sh -c #(nop) ENV PHP_EXTRA_CONFIGURE_ARGS=--with-apxs2 --disable-cgi

2020-05-15 12:49:27 UTC

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

2020-05-15 12:49:27 UTC

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

2020-05-15 12:49:28 UTC

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

2020-05-15 14:23:53 UTC

/bin/sh -c #(nop) ENV GPG_KEYS=1729F83938DA44E27BA0F4D3DBDB397470D12172 B1B44D8F021E4E2D6021E995DC9FF8D3EE5AF27F

2020-05-15 14:23:53 UTC

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

2020-05-15 14:23:54 UTC

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

2020-05-15 14:23:54 UTC

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

2020-05-15 14:24:06 UTC

/bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends gnupg dirmngr; rm -rf /var/lib/apt/lists/*; 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_MD5" ]; then echo "$PHP_MD5 *php.tar.xz" | md5sum -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 ha.pool.sks-keyservers.net --recv-keys "$key"; done; gpg --batch --verify php.tar.xz.asc php.tar.xz; gpgconf --kill all; rm -rf "$GNUPGHOME"; fi; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark > /dev/null; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false

2020-05-15 14:24:06 UTC

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

2020-05-15 14:28:03 UTC

/bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends libargon2-dev libcurl4-openssl-dev libedit-dev libsodium-dev libsqlite3-dev libssl-dev libxml2-dev zlib1g-dev ${PHP_EXTRA_BUILD_DEPS:-} ; rm -rf /var/lib/apt/lists/*; export CFLAGS="$PHP_CFLAGS" CPPFLAGS="$PHP_CPPFLAGS" LDFLAGS="$PHP_LDFLAGS" ; docker-php-source extract; cd /usr/src/php; 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; ./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 --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" ${PHP_EXTRA_CONFIGURE_ARGS:-} ; make -j "$(nproc)"; find -type f -name '*.a' -delete; make install; find /usr/local/bin /usr/local/sbin -type f -executable -exec strip --strip-all '{}' + || true; make clean; cp -v php.ini-* "$PHP_INI_DIR/"; cd /; docker-php-source delete; 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; pecl update-channels; rm -rf /tmp/pear ~/.pearrc; php --version

2020-06-02 21:27:21 UTC

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

2020-06-02 21:27:22 UTC

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

2020-06-02 21:27:23 UTC

/bin/sh -c { echo '#!/bin/sh'; echo 'exec pkg-config "$@" freetype2'; } > /usr/local/bin/freetype-config && chmod +x /usr/local/bin/freetype-config

2020-06-02 21:27:23 UTC

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

2020-06-02 21:27:23 UTC

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

2020-06-02 21:27:23 UTC

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

2020-06-02 21:27:23 UTC

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

2020-06-02 21:27:24 UTC

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

2020-06-02 21:27:24 UTC

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

2020-06-09 12:57:28 UTC

/bin/sh -c #(nop) MAINTAINER phithon <root@leavesongs.com>

2020-06-09 12:57:28 UTC

/bin/sh -c #(nop) ARG MIRROR_URL=https://github.com/vulhub/mirrors/raw/master/debian/stretch/aliyun.list

2020-06-09 12:57:43 UTC

|1 MIRROR_URL=https://github.com/vulhub/mirrors/raw/master/debian/stretch/aliyun.list /bin/sh -c set -ex && curl -#sL $MIRROR_URL -o /etc/apt/sources.list && apt-get update && apt-get install -y --no-install-recommends unzip && rm -rf /var/lib/apt/lists/*

2020-06-09 12:57:44 UTC

/bin/sh -c #(nop) ENV APACHE_DOCUMENT_ROOT=/var/www/public

2020-06-09 12:57:46 UTC

|1 MIRROR_URL=https://github.com/vulhub/mirrors/raw/master/debian/stretch/aliyun.list /bin/sh -c set -ex && cd /var/www && rm -rf * && curl -#SL https://github.com/top-think/think/archive/v5.0.20.tar.gz | tar zx --strip-components=1 && sed -ri -e 's!/var/www/html!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/sites-available/*.conf && sed -ri -e 's!/var/www/!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/apache2.conf /etc/apache2/conf-available/*.conf

2020-06-09 12:57:46 UTC

/bin/sh -c #(nop) COPY file:10cedf910ae489cdd0d24885b417796e9002e49a08c37e15f515820addfe176e in /var/www/

2020-06-09 12:58:18 UTC

|1 MIRROR_URL=https://github.com/vulhub/mirrors/raw/master/debian/stretch/aliyun.list /bin/sh -c set -ex && cd /var/www && curl -#sSL https://github.com/composer/composer/releases/download/1.10.7/composer.phar -o composer.phar && php composer.phar install && chown www-data:www-data -R .

2020-06-09 12:58:19 UTC

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

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