php7fpm-librebooking (latest)

Published 2024-05-30 13:40:17 +12:00 by lightweight

Installation

docker pull forge.magnificent.nz/lightweight/php7fpm-librebooking:latest
sha256:88ef68108080e4b9786eb32d128e4cc8679250fdb4695d8b6bbdc5be85a1a5bf

Image Layers

ADD file:c855b3c65f5ba94d548d7d2659094eeb63fbf7f8419ac8e07712c3320c38b62c 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 777 /var/www/html
ENV PHP_EXTRA_CONFIGURE_ARGS=--enable-fpm --with-fpm-user=www-data --with-fpm-group=www-data --disable-cgi
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=42670A7FE4D0441C8E4632349E4FDC074A4EF02D 5A52880781F755608BF815FC910DEB46F53EA312
ENV PHP_VERSION=7.4.16
ENV PHP_URL=https://www.php.net/distributions/php-7.4.16.tar.xz PHP_ASC_URL=https://www.php.net/distributions/php-7.4.16.tar.xz.asc
ENV PHP_SHA256=1c16cefaf88ded4c92eed6a8a41eb682bb2ef42429deb55f1c4ba159053fb98b
/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_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
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 libedit-dev libonig-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 --with-pic --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 --with-pear $(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
COPY multi:6dfba8f7e64bd54e4d9aa0855ff6ce7a53059e0a733752b4537fd3fdfd32d837 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 '; if we send this to /proc/self/fd/1, it never appears'; 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
STOPSIGNAL SIGQUIT
EXPOSE 9000
CMD ["php-fpm"]
MAINTAINER Dave Lane <dave@oerfoundation.org> (@lightweight)
RUN /bin/sh -c apt-get update && apt-get install -y software-properties-common apt-utils # buildkit
ENV DEBIAN_FRONTEND=noninteractive
RUN /bin/sh -c apt-get update && apt-get install -y apt-utils git less libbz2-dev libc-client-dev libcurl4-gnutls-dev libicu-dev libkrb5-dev libmcrypt-dev libpng-dev libpspell-dev libssl-dev libxml2-dev libzip-dev mariadb-client telnet unzip zip # buildkit
RUN /bin/sh -c apt-get install -y net-tools vim dnsutils # buildkit
RUN /bin/sh -c apt-get install -y cron msmtp sudo # buildkit
RUN /bin/sh -c apt-get install -y --no-install-recommends libpq-dev libonig-dev # buildkit
RUN /bin/sh -c docker-php-ext-configure imap --with-imap --with-imap-ssl --with-kerberos # buildkit
RUN /bin/sh -c docker-php-ext-install bz2 curl imap intl mbstring mysqli pspell opcache pdo pdo_mysql pdo_pgsql pspell soap xmlrpc zip # buildkit
ENV PHPREDIS_VERSION=6.0.2
RUN /bin/sh -c docker-php-source extract && curl -L -o /tmp/redis.tar.gz https://github.com/phpredis/phpredis/archive/$PHPREDIS_VERSION.tar.gz && tar xfz /tmp/redis.tar.gz && rm -r /tmp/redis.tar.gz && mv phpredis-$PHPREDIS_VERSION /usr/src/php/ext/redis && docker-php-ext-install redis && docker-php-source delete # buildkit
RUN /bin/sh -c apt-get update && apt-get install -y libfreetype6-dev libjpeg62-turbo-dev libmcrypt-dev libpng-dev && docker-php-ext-install -j$(nproc) iconv && docker-php-ext-configure gd --with-freetype=/usr/include/ --with-jpeg=/usr/include/ && docker-php-ext-install -j$(nproc) gd # buildkit
RUN /bin/sh -c apt-get install -y libyaml-dev unzip # buildkit
RUN /bin/sh -c pecl install yaml # buildkit
RUN /bin/sh -c docker-php-ext-enable yaml # buildkit
RUN /bin/sh -c pecl install apcu # buildkit
RUN /bin/sh -c docker-php-ext-enable apcu # buildkit
RUN /bin/sh -c rm -rf /var/lib/apt/lists/* # buildkit
RUN /bin/sh -c set -ex && { echo 'log_errors = on'; echo 'display_errors = off'; echo 'always_populate_raw_post_data = -1'; echo 'date.timezone = "Pacific/Auckland"'; echo 'cgi.fix_pathinfo = 0'; echo 'SMTP = localhost'; echo 'smtp_port = 25'; echo 'sendmail_path = "/usr/bin/msmtp -C /etc/msmtp/default.conf -t"'; echo 'mail.add_x_header = On'; echo 'mail.log = /tmp/msmtp.log'; echo 'upload_max_filesize = 100M'; echo 'post_max_size = 150M'; echo 'memory_limit = 250M'; echo '[opcache]'; echo 'opcache.enable = 1'; echo 'opcache.memory_consumption = 128'; echo 'opcache.max_accelerated_files = 8000'; echo 'opcache.revalidate_freq = 60'; echo 'opcache.use_cwd = 1'; echo 'opcache.validate_timestamps = 1'; echo 'opcache.save_comments = 1'; echo 'opcache.enable_file_override = 0'; } | tee /usr/local/etc/php/conf.d/php.ini # buildkit
RUN /bin/sh -c set -ex && { echo '[global]'; echo 'error_log = /proc/self/fd/2'; echo '[www]'; echo 'user = www-data'; echo 'group = www-data'; echo '; if we send this to /proc/self/fd/1, it never appears'; echo 'access.log = /proc/self/fd/2'; echo 'clear_env = no'; echo 'catch_workers_output = yes'; echo '; Ensure worker stdout and stderr are sent to the main error log.'; echo 'security.limit_extensions = .php'; echo '; process management stuff'; echo 'pm = ondemand'; echo 'pm.max_children = 10'; echo 'pm.start_servers = 2'; echo 'pm.min_spare_servers = 1'; echo 'pm.max_spare_servers = 3'; } | tee /usr/local/etc/php-fpm.d/www.conf # buildkit
VOLUME [/var/www/html]
RUN /bin/sh -c mkdir /etc/msmtp && chown -R www-data /etc/msmtp && chmod -R 600 /etc/msmtp # buildkit
RUN /bin/sh -c touch /tmp/msmtp.log && chown -R www-data /tmp/msmtp.log # buildkit
COPY docker-entrypoint.sh /entrypoint.sh # buildkit
ENTRYPOINT ["/entrypoint.sh"]
CMD ["php-fpm"]
Details
Container
2024-05-30 13:40:17 +12:00
0
OCI / Docker
linux/amd64
301 MiB
Versions (1) View all
latest 2024-05-30