Namespace
vulhub
Image / Tag
thinkphp:5.0.23
Content Digest
sha256:ab1967a4fda3d9aff5a7e9479cb4ac5e19bf4246ae32b726a78d3a14c8a109c4
Details
Created

2019-01-11 12:22:43 UTC

Size

143 MB

Content Digest
Labels
  • MAINTAINER
    phithon <root@leavesongs.com>

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://secure.php.net/get/php-7.2.12.tar.xz.asc/from/this/mirror

PHP_CFLAGS

-fstack-protector-strong -fpic -fpie -O2

PHP_CPPFLAGS

-fstack-protector-strong -fpic -fpie -O2

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 -Wl,--hash-style=both -pie

PHP_MD5

PHP_SHA256

989c04cc879ee71a5e1131db867f3c5102f1f7565f805e2bb8bde33f93147fe1

PHP_URL

https://secure.php.net/get/php-7.2.12.tar.xz/from/this/mirror

PHP_VERSION

7.2.12


Layers

[#000] sha256:a5a6f2f73cd8abbdc55d0df0d8834f7262713e87d6c8800ea3851f103025e0f0 - 15.03% (21.4 MB)

[#001] sha256:633e0d1cd2a336ecc3124ec0b06e1039049f1716554038b9dfc8c3529f6fd988 - 0.0% (226 Bytes)

[#002] sha256:fcdfdf7118ba156cb7115b991210623e82c6ad0f57aa55e38790f2bd734c50fa - 45.07% (64.3 MB)

[#003] sha256:4e7dc76b176992c0aa2fd3f3bc438ac6be98897e6025b68e8652b24b132ec952 - 0.0% (183 Bytes)

[#004] sha256:c425447c8835eea0dd20e2413708f2049d419d86a586923131dd511fcbd2f71f - 11.45% (16.3 MB)

[#005] sha256:75780b7b99771735ed400379da8c1593913a3a716e38c2cee20f28fb2472757d - 0.0% (1.31 KB)

[#006] sha256:33ed51bc30e852a31ceb7c7515bd4cfa384a0dbe82f21247ccd00826e1006394 - 0.0% (433 Bytes)

[#007] sha256:7c4215700bc420c3c03025af9d3f5e8429b2d782bf1a6a45f28a185bfe78959f - 0.0% (487 Bytes)

[#008] sha256:ef55a760eb7abac5fc45fdacf4e5108a0c23690f967cf7b4c79ae6db3b6ce561 - 8.35% (11.9 MB)

[#009] sha256:d982e3946ac5110d6ad1b896205a40497653b44420c095ab6c799fd2a9a2418e - 0.0% (501 Bytes)

[#010] sha256:a38e2fdf4f5068fb8205e2f895ba89a6af0fe3e227158505a2c0ea125e035907 - 10.19% (14.5 MB)

[#011] sha256:09f702917a0a573ce32f92c105655d25e309d2fce7aa40ba2c545669c42a9fa8 - 0.0% (2.14 KB)

[#012] sha256:df1d46358537e5ca49d8a7300b4f5cd176519a86cd117faf8a36213c22d98166 - 0.0% (257 Bytes)

[#013] sha256:9b0d5695ec4245862cec91f5f5f71098fba659475384c7bea9984a947aebf03c - 0.0% (903 Bytes)

[#014] sha256:6addeb00c10a5c72d8022a9621f33782ff5820b8531e443faa34292682d035be - 0.33% (476 KB)

[#015] sha256:fc58d25ac632c0a43a3338bd43e8f8a77fc8e7e334f074313662966c5e388ecc - 0.02% (35.3 KB)

[#016] sha256:855140cac1484eb6b624df53973219b00e016883b7dfd047a735f73518319696 - 0.0% (461 Bytes)

[#017] sha256:faec08a7f78af38a7fd852563d5f70de809c22ec28148dd0568096571d9e0ec1 - 9.56% (13.6 MB)


History
2018-11-15 22:45:06 UTC

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

2018-11-15 22:45:07 UTC

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

2018-11-16 01:53:50 UTC

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

2018-11-16 01:53:50 UTC

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

2018-11-16 01:54:30 UTC

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

2018-11-16 01:54:31 UTC

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

2018-11-16 01:54:32 UTC

/bin/sh -c mkdir -p $PHP_INI_DIR/conf.d

2018-11-16 02:06:41 UTC

/bin/sh -c apt-get update && apt-get install -y --no-install-recommends apache2 && rm -rf /var/lib/apt/lists/*

2018-11-16 02:06:41 UTC

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

2018-11-16 02:06:42 UTC

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

2018-11-28 22:47:36 UTC

/bin/sh -c set -eux; sed -ri 's/^export ([^=]+)=(.*)$/: ${\1:=\2}\nexport \1/' "$APACHE_ENVVARS"; . "$APACHE_ENVVARS"; for dir in "$APACHE_LOCK_DIR" "$APACHE_RUN_DIR" "$APACHE_LOG_DIR" /var/www/html ; do rm -rvf "$dir"; mkdir -p "$dir"; chown "$APACHE_RUN_USER:$APACHE_RUN_GROUP" "$dir"; chmod 777 "$dir"; done; 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"

2018-11-28 22:47:37 UTC

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

2018-11-28 22:47:51 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

2018-11-28 22:47:52 UTC

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

2018-11-28 22:47:52 UTC

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

2018-11-28 22:47:52 UTC

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

2018-11-28 22:47:52 UTC

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

2018-11-28 22:47:53 UTC

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

2018-11-28 22:54:43 UTC

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

2018-11-28 22:54:43 UTC

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

2018-11-28 22:54:44 UTC

/bin/sh -c #(nop) ENV PHP_URL=https://secure.php.net/get/php-7.2.12.tar.xz/from/this/mirror PHP_ASC_URL=https://secure.php.net/get/php-7.2.12.tar.xz.asc/from/this/mirror

2018-11-28 22:54:44 UTC

/bin/sh -c #(nop) ENV PHP_SHA256=989c04cc879ee71a5e1131db867f3c5102f1f7565f805e2bb8bde33f93147fe1 PHP_MD5=

2018-11-28 22:54:53 UTC

/bin/sh -c set -xe; fetchDeps=' wget '; if ! command -v gpg > /dev/null; then fetchDeps="$fetchDeps dirmngr gnupg "; fi; apt-get update; apt-get install -y --no-install-recommends $fetchDeps; rm -rf /var/lib/apt/lists/*; mkdir -p /usr/src; cd /usr/src; wget -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 wget -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; command -v gpgconf > /dev/null && gpgconf --kill all; rm -rf "$GNUPGHOME"; fi; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false $fetchDeps

2018-11-28 22:55:00 UTC

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

2018-11-28 22:58:52 UTC

/bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends libcurl4-openssl-dev libedit-dev libsodium-dev libsqlite3-dev libssl-dev libxml2-dev zlib1g-dev ${PHP_EXTRA_BUILD_DEPS:-} ; sed -e 's/stretch/buster/g' /etc/apt/sources.list > /etc/apt/sources.list.d/buster.list; { echo 'Package: *'; echo 'Pin: release n=buster'; echo 'Pin-Priority: -10'; echo; echo 'Package: libargon2*'; echo 'Pin: release n=buster'; echo 'Pin-Priority: 990'; } > /etc/apt/preferences.d/argon2-buster; apt-get update; apt-get install -y --no-install-recommends libargon2-dev; 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-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)"; 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; php --version; pecl update-channels; rm -rf /tmp/pear ~/.pearrc

2018-11-28 22:59:37 UTC

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

2018-11-28 22:59:38 UTC

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

2018-11-28 22:59:38 UTC

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

2018-11-28 22:59:38 UTC

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

2018-11-28 22:59:39 UTC

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

2018-11-28 22:59:39 UTC

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

2018-11-28 22:59:39 UTC

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

2019-01-11 12:16:52 UTC

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

2019-01-11 12:22:13 UTC

/bin/sh -c set -ex && apt-get update && apt-get install -y --no-install-recommends unzip && rm -rf /var/lib/apt/lists/*

2019-01-11 12:22:14 UTC

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

2019-01-11 12:22:15 UTC

/bin/sh -c set -ex && cd /var/www && rm -rf * && curl -#SL https://github.com/top-think/think/archive/v5.0.23.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

2019-01-11 12:22:16 UTC

/bin/sh -c #(nop) COPY file:028397136fa3fda01da7dae9e2b94903e0f0dcb9a6a3842c7ad6e1cbc454bf30 in /var/www/

2019-01-11 12:22:43 UTC

/bin/sh -c set -ex && cd /var/www && curl -#sSL https://getcomposer.org/composer.phar -o composer.phar && php composer.phar install && php composer.phar require "topthink/think-captcha:^1.0" && chown www-data:www-data -R .

2019-01-11 12:22:43 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