Namespace
william
Image / Tag
webapp-php-8:latest
Content Digest
sha256:8d623d7ba40006d75ce27f6dc09926b528b7fc8f8941c0746db7fd2aeffb706d
Pull command
Details
Created

2023-08-30 20:09:06 UTC

Size

158 MB

Content Digest
Labels
  • maintainer
    Colin Wilson colin@wyveo.com

Environment
COMPOSER_VERSION

2.2.7

DEBIAN_FRONTEND

noninteractive

NGINX_VERSION

1.21.6-1~bullseye

PATH

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

fpm_conf

/etc/php/8.1/fpm/pool.d/www.conf

php_conf

/etc/php/8.1/fpm/php.ini


Layers

[#000] sha256:f7a1c6dad28192bd417b78079d6ddc03cbca6d5ea46bba12769b235b6353c00c - 18.97% (29.9 MB)

[#001] sha256:979efbe2c3015a21dfec29ba59b2fde2e57f986adecbfc28e0c6b5f80b7ca4f0 - 66.14% (104 MB)

[#002] sha256:1517067ac0813a76e6e147d91a2b8ab8902a0d5ab4d39dac043391bb73d4405d - 0.0% (903 Bytes)

[#003] sha256:a079a3a563e294b7ef512e71353ad94976f77632a9245422fb8ee5f576605155 - 0.0% (1.06 KB)

[#004] sha256:9b1751aca4f3a046c7bf6833eb9a8990b0a9895b90c96da065112bc96ed12808 - 0.0% (5.17 KB)

[#005] sha256:35847fc166abe33f1d2ba7222a2fa0882f8f21aa22709251d3b4fed757140ac3 - 0.0% (326 Bytes)

[#006] sha256:45c3d64d724f17ebb1df80a19562ee137c880329a5a60c6a98f6c96d9b7b228c - 14.88% (23.5 MB)


History
2022-03-01 02:13:29 UTC

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

2022-03-01 02:13:29 UTC

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

2022-03-11 14:28:21 UTC

/bin/sh -c #(nop) LABEL maintainer=Colin Wilson colin@wyveo.com

2022-03-11 14:28:22 UTC

/bin/sh -c #(nop) ENV DEBIAN_FRONTEND=noninteractive

2022-03-11 14:28:23 UTC

/bin/sh -c #(nop) ENV NGINX_VERSION=1.21.6-1~bullseye

2022-03-11 14:28:24 UTC

/bin/sh -c #(nop) ENV php_conf=/etc/php/8.1/fpm/php.ini

2022-03-11 14:28:25 UTC

/bin/sh -c #(nop) ENV fpm_conf=/etc/php/8.1/fpm/pool.d/www.conf

2022-03-11 14:28:26 UTC

/bin/sh -c #(nop) ENV COMPOSER_VERSION=2.2.7

2022-03-11 14:30:04 UTC

/bin/sh -c buildDeps='curl gcc make autoconf libc-dev zlib1g-dev pkg-config' && set -x && apt-get update && apt-get install --no-install-recommends $buildDeps --no-install-suggests -q -y gnupg2 dirmngr wget apt-transport-https lsb-release ca-certificates && NGINX_GPGKEY=573BFD6B3D8FBC641079A6ABABF5BD827BD9BF62; found=''; for server in ha.pool.sks-keyservers.net hkp://keyserver.ubuntu.com:80 hkp://p80.pool.sks-keyservers.net:80 pgp.mit.edu ; do echo "Fetching GPG key $NGINX_GPGKEY from $server"; apt-key adv --batch --keyserver "$server" --keyserver-options timeout=10 --recv-keys "$NGINX_GPGKEY" && found=yes && break; done; test -z "$found" && echo >&2 "error: failed to fetch GPG key $NGINX_GPGKEY" && exit 1; echo "deb http://nginx.org/packages/mainline/debian/ bullseye nginx" >> /etc/apt/sources.list && wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg && echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list && apt-get update && apt-get install --no-install-recommends --no-install-suggests -q -y apt-utils nano zip unzip python3-pip python-setuptools git libmemcached-dev libmemcached11 libmagickwand-dev nginx=${NGINX_VERSION} php8.1-fpm php8.1-cli php8.1-bcmath php8.1-dev php8.1-common php8.1-opcache php8.1-readline php8.1-mbstring php8.1-curl php8.1-gd php8.1-imagick php8.1-mysql php8.1-zip php8.1-pgsql php8.1-intl php8.1-xml php-pear && pecl -d php_suffix=8.1 install -o -f redis memcached && mkdir -p /run/php && pip install wheel && pip install supervisor && pip install git+https://github.com/coderanger/supervisor-stdout && echo "#!/bin/sh\nexit 0" > /usr/sbin/policy-rc.d && rm -rf /etc/nginx/conf.d/default.conf && sed -i -e "s/;cgi.fix_pathinfo=1/cgi.fix_pathinfo=0/g" ${php_conf} && sed -i -e "s/memory_limit\s*=\s*.*/memory_limit = 256M/g" ${php_conf} && sed -i -e "s/upload_max_filesize\s*=\s*2M/upload_max_filesize = 100M/g" ${php_conf} && sed -i -e "s/post_max_size\s*=\s*8M/post_max_size = 100M/g" ${php_conf} && sed -i -e "s/variables_order = \"GPCS\"/variables_order = \"EGPCS\"/g" ${php_conf} && sed -i -e "s/;daemonize\s*=\s*yes/daemonize = no/g" /etc/php/8.1/fpm/php-fpm.conf && sed -i -e "s/;catch_workers_output\s*=\s*yes/catch_workers_output = yes/g" ${fpm_conf} && sed -i -e "s/pm.max_children = 5/pm.max_children = 4/g" ${fpm_conf} && sed -i -e "s/pm.start_servers = 2/pm.start_servers = 3/g" ${fpm_conf} && sed -i -e "s/pm.min_spare_servers = 1/pm.min_spare_servers = 2/g" ${fpm_conf} && sed -i -e "s/pm.max_spare_servers = 3/pm.max_spare_servers = 4/g" ${fpm_conf} && sed -i -e "s/pm.max_requests = 500/pm.max_requests = 200/g" ${fpm_conf} && sed -i -e "s/www-data/nginx/g" ${fpm_conf} && sed -i -e "s/^;clear_env = no$/clear_env = no/" ${fpm_conf} && echo "extension=redis.so" > /etc/php/8.1/mods-available/redis.ini && echo "extension=memcached.so" > /etc/php/8.1/mods-available/memcached.ini && echo "extension=imagick.so" > /etc/php/8.1/mods-available/imagick.ini && ln -sf /etc/php/8.1/mods-available/redis.ini /etc/php/8.1/fpm/conf.d/20-redis.ini && ln -sf /etc/php/8.1/mods-available/redis.ini /etc/php/8.1/cli/conf.d/20-redis.ini && ln -sf /etc/php/8.1/mods-available/memcached.ini /etc/php/8.1/fpm/conf.d/20-memcached.ini && ln -sf /etc/php/8.1/mods-available/memcached.ini /etc/php/8.1/cli/conf.d/20-memcached.ini && ln -sf /etc/php/8.1/mods-available/imagick.ini /etc/php/8.1/fpm/conf.d/20-imagick.ini && ln -sf /etc/php/8.1/mods-available/imagick.ini /etc/php/8.1/cli/conf.d/20-imagick.ini && curl -o /tmp/composer-setup.php https://getcomposer.org/installer && curl -o /tmp/composer-setup.sig https://composer.github.io/installer.sig && php -r "if (hash('SHA384', file_get_contents('/tmp/composer-setup.php')) !== trim(file_get_contents('/tmp/composer-setup.sig'))) { unlink('/tmp/composer-setup.php'); echo 'Invalid installer' . PHP_EOL; exit(1); }" && php /tmp/composer-setup.php --no-ansi --install-dir=/usr/local/bin --filename=composer --version=${COMPOSER_VERSION} && rm -rf /tmp/composer-setup.php && rm -rf /tmp/pear && apt-get purge -y --auto-remove $buildDeps && apt-get clean && apt-get autoremove && rm -rf /var/lib/apt/lists/*

2022-03-11 14:30:06 UTC

/bin/sh -c #(nop) COPY file:2be997f8b662c267a08def2ccfe641ce5e71b3f3eed165e1cca45361c808dc04 in /etc/supervisord.conf

2022-03-11 14:30:07 UTC

/bin/sh -c #(nop) COPY file:942d4f558d77c8461988f14818aa59f3f222813591beb39050655a96a0ff2fd7 in /etc/nginx/conf.d/default.conf

2022-03-11 14:30:08 UTC

/bin/sh -c #(nop) COPY dir:e0735fd005fefb5e96471d7b7a287239972fec86a2266935a1f8f4e4c40b9404 in /usr/share/nginx/html

2022-03-11 14:30:09 UTC

/bin/sh -c #(nop) COPY file:27a8a9b6db8c8a2293eea60f0fd56dde04127459c6d2d3488e7fea87123fc30c in /start.sh

2022-03-11 14:30:09 UTC

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

2022-03-11 14:30:10 UTC

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

2023-08-30 20:09:06 UTC (buildkit.dockerfile.v0)

COPY . /usr/share/nginx/html # buildkit

2023-08-30 20:09:06 UTC (buildkit.dockerfile.v0)

CMD ["/start.sh"]