Namespace
vulhub
Image / Tag
php:5.6-with-imap
Content Digest
sha256:224707e1e9229776a3abdd5e3fec71b339009c7f4e87811a8e040caf9acb2073
Details
Created

2018-12-08 15:18:12 UTC

Size

130 MB

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

Environment
APACHE_CONFDIR

/etc/apache2

APACHE_ENVVARS

/etc/apache2/envvars

GPG_KEYS

0BD78B5F97500D450838F95DFE857D9A90D90EC1 6E4F6AB321FDC07F2C332E3AC2BF0BC433CFC8B3

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

c2fac47dc6316bd230f0ea91d8a5498af122fb6a3eb43f796c9ea5f59b04aa1e

PHP_URL

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

PHP_VERSION

5.6.38


Layers

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

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

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

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

[#004] sha256:c425447c8835eea0dd20e2413708f2049d419d86a586923131dd511fcbd2f71f - 12.53% (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:a76e898b11a33bae769ba70db0e69c7181407704d4f039ea708070a7625ea68c - 9.37% (12.2 MB)

[#009] sha256:196bf244644af9d533c625acd00b31b736d39b7c2cbee9a1571f19b82dc64082 - 0.0% (499 Bytes)

[#010] sha256:48db1a977711c1ef1a049f40e733557c9b5ac3ca0071e8db64a9f06ba060a74a - 7.11% (9.28 MB)

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

[#012] sha256:c2c056a5d64aec7008eae92e5f6223d98caf8d413b90bb637d1c77d0bbf252d0 - 0.0% (901 Bytes)

[#013] sha256:2f4ba16cb16c65a4ebfd50f1306719bbafab7e6f4b524a2c8eb8b6db7b8d3fd7 - 5.23% (6.82 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 23:22:00 UTC

/bin/sh -c #(nop) ENV GPG_KEYS=0BD78B5F97500D450838F95DFE857D9A90D90EC1 6E4F6AB321FDC07F2C332E3AC2BF0BC433CFC8B3

2018-11-28 23:22:00 UTC

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

2018-11-28 23:22:00 UTC

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

2018-11-28 23:22:00 UTC

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

2018-11-28 23:22:09 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 23:22:24 UTC

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

2018-11-28 23:25:30 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 libsqlite3-dev libssl1.0-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-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 23:25:42 UTC

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

2018-11-28 23:25:43 UTC

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

2018-11-28 23:25:43 UTC

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

2018-11-28 23:26:01 UTC

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

2018-11-28 23:26:02 UTC

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

2018-11-28 23:26:02 UTC

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

2018-12-08 14:27:01 UTC

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

2018-12-08 14:27:01 UTC

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

2018-12-08 15:18:12 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 --no-install-recommends -y libc-client-dev libkrb5-dev ssh-client && docker-php-ext-configure imap --with-kerberos --with-imap-ssl && docker-php-ext-install imap && rm -r /var/lib/apt/lists/*

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