blkdoor_com (latest)

Published 2024-04-18 20:48:20 +00:00 by kenjreno

Installation

docker pull kjgr.io/kenjreno/blkdoor_com:latest
sha256:052eabae32c5e12a3ac0e0840870778ce0e81a9a4b5384ea17d9b34cdf5773fe

Image Layers

ADD file:d4bb05cb4d403a78b4ab5cd8d620330659d5aeb25f847d104ebc02c3a0f32624 in /
CMD ["bash"]
/bin/sh -c set -eux; { echo 'Package: php*'; echo 'Pin: release *'; echo 'Pin-Priority: -1'; } > /etc/apt/preferences.d/no-debian-php
ENV PHPIZE_DEPS=autoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c
/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/*
ENV PHP_INI_DIR=/usr/local/etc/php
/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
ENV PHP_CFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
ENV PHP_CPPFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
ENV PHP_LDFLAGS=-Wl,-O1 -pie
ENV GPG_KEYS=1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA
ENV PHP_VERSION=8.3.6
ENV PHP_URL=https://www.php.net/distributions/php-8.3.6.tar.xz PHP_ASC_URL=https://www.php.net/distributions/php-8.3.6.tar.xz.asc
ENV PHP_SHA256=53c8386b2123af97626d3438b3e4058e0c5914cb74b048a6676c57ac647f5eae
/bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends gnupg; 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_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; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark > /dev/null; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false
COPY file:ce57c04b70896f77cc11eb2766417d8a1240fcffe5bba92179ec78c458844110 in /usr/local/bin/
/bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends libargon2-dev libcurl4-openssl-dev libonig-dev libreadline-dev libsodium-dev libsqlite3-dev libssl-dev libxml2-dev zlib1g-dev ; 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)"; 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 --with-pic --enable-mbstring --enable-mysqlnd --with-password-argon2 --with-sodium=shared --with-pdo-sqlite=/usr --with-sqlite3=/usr --with-curl --with-iconv --with-openssl --with-readline --with-zlib --disable-phpdbg --with-pear $(test "$gnuArch" = 's390x-linux-gnu' && echo '--without-pcre-jit') --with-libdir="lib/$debMultiarch" --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; apt-mark auto '.*' > /dev/null; [ -z "$savedAptMark" ] || apt-mark manual $savedAptMark; find /usr/local -type f -executable -exec ldd '{}' ';' | awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); printf "*%s\n", so }' | 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; rm -rf /var/lib/apt/lists/*; pecl update-channels; rm -rf /tmp/pear ~/.pearrc; php --version
COPY multi:869bde9dbeae74886a05c9e2107b3e3b4877116db8c6d9adbaff2719f9fb5262 in /usr/local/bin/
/bin/sh -c docker-php-ext-enable sodium
ENTRYPOINT ["docker-php-entrypoint"]
WORKDIR /var/www/html
/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"
STOPSIGNAL SIGQUIT
EXPOSE 9000
CMD ["php-fpm"]
ARG BUILD_ARGUMENT_ENV=dev
ENV ENV=prod
ENV APP_HOME=/var/www/html
ARG HOST_UID=1000
ARG HOST_GID=1000
ENV USERNAME=www-data
ARG INSIDE_DOCKER_CONTAINER=1
ENV INSIDE_DOCKER_CONTAINER=1
ARG XDEBUG_CONFIG=main
ENV XDEBUG_CONFIG=main
ARG XDEBUG_VERSION=3.3.1
ENV XDEBUG_VERSION=3.3.1
RUN |6 BUILD_ARGUMENT_ENV=prod HOST_UID=406401107 HOST_GID=406400513 INSIDE_DOCKER_CONTAINER=1 XDEBUG_CONFIG=main XDEBUG_VERSION=3.3.1 /bin/sh -c if [ "$BUILD_ARGUMENT_ENV" = "default" ]; then echo "Set BUILD_ARGUMENT_ENV in docker build-args like --build-arg BUILD_ARGUMENT_ENV=dev" && exit 2; elif [ "$BUILD_ARGUMENT_ENV" = "dev" ]; then echo "Building development environment."; elif [ "$BUILD_ARGUMENT_ENV" = "test" ]; then echo "Building test environment."; elif [ "$BUILD_ARGUMENT_ENV" = "staging" ]; then echo "Building staging environment."; elif [ "$BUILD_ARGUMENT_ENV" = "prod" ]; then echo "Building production environment."; else echo "Set correct BUILD_ARGUMENT_ENV in docker build-args like --build-arg BUILD_ARGUMENT_ENV=dev. Available choices are dev,test,staging,prod." && exit 2; fi # buildkit
RUN |6 BUILD_ARGUMENT_ENV=prod HOST_UID=406401107 HOST_GID=406400513 INSIDE_DOCKER_CONTAINER=1 XDEBUG_CONFIG=main XDEBUG_VERSION=3.3.1 /bin/sh -c apt-get update && apt-get upgrade -y && apt-get install -y procps nano git unzip libicu-dev zlib1g-dev libxml2 libxml2-dev libreadline-dev libmemcached-dev zlib1g-dev libssl-dev supervisor cron sudo libzip-dev && docker-php-ext-configure pdo_mysql --with-pdo-mysql=mysqlnd && docker-php-ext-configure intl && docker-php-ext-install bcmath pdo_mysql sockets intl opcache zip && pecl install redis && pecl install memcached && apt-get -y autoremove && apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* # buildkit
RUN |6 BUILD_ARGUMENT_ENV=prod HOST_UID=406401107 HOST_GID=406400513 INSIDE_DOCKER_CONTAINER=1 XDEBUG_CONFIG=main XDEBUG_VERSION=3.3.1 /bin/sh -c mkdir -p $APP_HOME/public && mkdir -p /home/$USERNAME && chown $USERNAME:$USERNAME /home/$USERNAME && usermod -o -u $HOST_UID $USERNAME -d /home/$USERNAME && groupmod -o -g $HOST_GID $USERNAME && chown -R ${USERNAME}:${USERNAME} $APP_HOME # buildkit
COPY ./docker/prod/www.conf /usr/local/etc/php-fpm.d/www.conf # buildkit
COPY ./docker/prod/php.ini /usr/local/etc/php/php.ini # buildkit
COPY ./docker/prod/opcache.ini /usr/local/etc/php/conf.d/opcache.ini # buildkit
COPY ./docker/general/do_we_need_xdebug.sh /tmp/ # buildkit
COPY ./docker/dev/xdebug-main.ini /tmp/xdebug.ini # buildkit
RUN |6 BUILD_ARGUMENT_ENV=prod HOST_UID=406401107 HOST_GID=406400513 INSIDE_DOCKER_CONTAINER=1 XDEBUG_CONFIG=main XDEBUG_VERSION=3.3.1 /bin/sh -c chmod u+x /tmp/do_we_need_xdebug.sh && /tmp/do_we_need_xdebug.sh # buildkit
COPY /usr/bin/composer /usr/bin/composer # buildkit
RUN |6 BUILD_ARGUMENT_ENV=prod HOST_UID=406401107 HOST_GID=406400513 INSIDE_DOCKER_CONTAINER=1 XDEBUG_CONFIG=main XDEBUG_VERSION=3.3.1 /bin/sh -c chmod +x /usr/bin/composer # buildkit
ENV COMPOSER_ALLOW_SUPERUSER=1
RUN |6 BUILD_ARGUMENT_ENV=prod HOST_UID=406401107 HOST_GID=406400513 INSIDE_DOCKER_CONTAINER=1 XDEBUG_CONFIG=main XDEBUG_VERSION=3.3.1 /bin/sh -c mkdir -p /var/log/supervisor # buildkit
COPY --chown=root:root ./docker/general/supervisord.conf /etc/supervisor/conf.d/supervisord.conf # buildkit
COPY --chown=root:crontab ./docker/general/cron /var/spool/cron/crontabs/root # buildkit
RUN |6 BUILD_ARGUMENT_ENV=prod HOST_UID=406401107 HOST_GID=406400513 INSIDE_DOCKER_CONTAINER=1 XDEBUG_CONFIG=main XDEBUG_VERSION=3.3.1 /bin/sh -c chmod 0600 /var/spool/cron/crontabs/root # buildkit
WORKDIR /var/www/html
USER www-data
COPY --chown=www-data:www-data ./app/ /var/www/html/ # buildkit
COPY --chown=www-data:www-data ./app/.env.prod /var/www/html/.env # buildkit
RUN |6 BUILD_ARGUMENT_ENV=prod HOST_UID=406401107 HOST_GID=406400513 INSIDE_DOCKER_CONTAINER=1 XDEBUG_CONFIG=main XDEBUG_VERSION=3.3.1 /bin/sh -c if [ "$BUILD_ARGUMENT_ENV" = "dev" ] || [ "$BUILD_ARGUMENT_ENV" = "test" ]; then COMPOSER_MEMORY_LIMIT=-1 composer install --optimize-autoloader --no-interaction --no-progress; else COMPOSER_MEMORY_LIMIT=-1 composer install --optimize-autoloader --no-interaction --no-progress --no-dev; fi # buildkit
USER root

Labels

Key Value
com.docker.compose.project blkdoor
com.docker.compose.service supervisord
com.docker.compose.version 2.26.1
Details
Container
2024-04-18 20:48:20 +00:00
1
OCI / Docker
linux/amd64
240 MiB
Versions (2) View all
0.1.0 2024-04-18
latest 2024-04-18