php8.2 (latest)
Published 2024-02-21 21:26:10 -05:00 by sbyrd
Installation
docker pull git.repos.cooini.com/iniapp/php8.2:latest
sha256:e83ca692fc03c95eb7e7184ef1af83bba05315e2f9d205ab4934a6ca683aec1d
About this package
Official build of Unit for Docker.
Image Layers
ADD file:40ad95eaf61b2797e8d2282bc2388bce34c3c24ed78e694695a8c3dbcd3ddbbb 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=39B641343D8C104B2B146DC3F9C39DC0B9698544 E60913E4DF209907D8E30D96659A97C9CF2A795A 1198C0117593497A5EC5C199286AF1F9897469DC |
ENV PHP_VERSION=8.2.16 |
ENV PHP_URL=https://www.php.net/distributions/php-8.2.16.tar.xz PHP_ASC_URL=https://www.php.net/distributions/php-8.2.16.tar.xz.asc |
ENV PHP_SHA256=28cdc995b7d5421711c7044294885fcde4390c9f67504a994b4cf9bc1b5cc593 |
/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 --enable-phpdbg --enable-phpdbg-readline --with-pear $(test "$gnuArch" = 's390x-linux-gnu' && echo '--without-pcre-jit') --with-libdir="lib/$debMultiarch" --enable-embed ; 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); print 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:6edd033b037aa2d7697fc3b9f82c2f162146c1920a0c6d25a165dc56783204db in /usr/local/bin/ |
/bin/sh -c docker-php-ext-enable sodium |
ENTRYPOINT ["docker-php-entrypoint"] |
CMD ["php" "-a"] |
LABEL org.opencontainers.image.title=Unit (php8.2) |
LABEL org.opencontainers.image.description=Official build of Unit for Docker. |
LABEL org.opencontainers.image.url=https://unit.nginx.org |
LABEL org.opencontainers.image.source=https://github.com/nginx/unit |
LABEL org.opencontainers.image.documentation=https://unit.nginx.org/installation/#docker-images |
LABEL org.opencontainers.image.vendor=NGINX Docker Maintainers <docker-maint@nginx.com> |
LABEL org.opencontainers.image.version=1.31.1 |
RUN /bin/sh -c set -ex && savedAptMark="$(apt-mark showmanual)" && apt-get update && apt-get install --no-install-recommends --no-install-suggests -y ca-certificates mercurial build-essential libssl-dev libpcre2-dev curl pkg-config && mkdir -p /usr/lib/unit/modules /usr/lib/unit/debug-modules && mkdir -p /usr/src/unit && cd /usr/src/unit && hg clone -u 1.31.1-1 https://hg.nginx.org/unit && cd unit && NCPU="$(getconf _NPROCESSORS_ONLN)" && DEB_HOST_MULTIARCH="$(dpkg-architecture -q DEB_HOST_MULTIARCH)" && CC_OPT="$(DEB_BUILD_MAINT_OPTIONS="hardening=+all,-pie" DEB_CFLAGS_MAINT_APPEND="-Wp,-D_FORTIFY_SOURCE=2 -fPIC" dpkg-buildflags --get CFLAGS)" && LD_OPT="$(DEB_BUILD_MAINT_OPTIONS="hardening=+all,-pie" DEB_LDFLAGS_MAINT_APPEND="-Wl,--as-needed -pie" dpkg-buildflags --get LDFLAGS)" && CONFIGURE_ARGS_MODULES="--prefix=/usr --statedir=/var/lib/unit --control=unix:/var/run/control.unit.sock --runstatedir=/var/run --pid=/var/run/unit.pid --logdir=/var/log --log=/var/log/unit.log --tmpdir=/var/tmp --user=unit --group=unit --openssl --libdir=/usr/lib/$DEB_HOST_MULTIARCH" && CONFIGURE_ARGS="$CONFIGURE_ARGS_MODULES --njs" && make -j $NCPU -C pkg/contrib .njs && export PKG_CONFIG_PATH=$(pwd)/pkg/contrib/njs/build && ./configure $CONFIGURE_ARGS --cc-opt="$CC_OPT" --ld-opt="$LD_OPT" --modulesdir=/usr/lib/unit/debug-modules --debug && make -j $NCPU unitd && install -pm755 build/sbin/unitd /usr/sbin/unitd-debug && make clean && ./configure $CONFIGURE_ARGS --cc-opt="$CC_OPT" --ld-opt="$LD_OPT" --modulesdir=/usr/lib/unit/modules && make -j $NCPU unitd && install -pm755 build/sbin/unitd /usr/sbin/unitd && make clean && /bin/true && ./configure $CONFIGURE_ARGS_MODULES --cc-opt="$CC_OPT" --modulesdir=/usr/lib/unit/debug-modules --debug && ./configure php && make -j $NCPU php-install && make clean && ./configure $CONFIGURE_ARGS_MODULES --cc-opt="$CC_OPT" --modulesdir=/usr/lib/unit/modules && ./configure php && make -j $NCPU php-install && cd && rm -rf /usr/src/unit && for f in /usr/sbin/unitd /usr/lib/unit/modules/*.unit.so; do ldd $f | awk '/=>/{print $(NF-1)}' | while read n; do dpkg-query -S $n; done | sed 's/^\([^:]\+\):.*$/\1/' | sort | uniq >> /requirements.apt; done && apt-mark showmanual | xargs apt-mark auto > /dev/null && { [ -z "$savedAptMark" ] || apt-mark manual $savedAptMark; } && ldconfig && mkdir -p /var/lib/unit/ && mkdir -p /docker-entrypoint.d/ && groupadd --gid 999 unit && useradd --uid 999 --gid unit --no-create-home --home /nonexistent --comment "unit user" --shell /bin/false unit && apt-get update && apt-get --no-install-recommends --no-install-suggests -y install curl $(cat /requirements.apt) && apt-get purge -y --auto-remove build-essential && rm -rf /var/lib/apt/lists/* && rm -f /requirements.apt && ln -sf /dev/stdout /var/log/unit.log # buildkit |
COPY docker-entrypoint.sh /usr/local/bin/ # buildkit |
COPY welcome.* /usr/share/unit/welcome/ # buildkit |
STOPSIGNAL SIGTERM |
ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"] |
EXPOSE map[80/tcp:{}] |
CMD ["unitd" "--no-daemon" "--control" "unix:/var/run/control.unit.sock"] |
/bin/sh |
Labels
Key | Value |
---|---|
io.buildah.version | 1.28.2 |
org.opencontainers.image.description | Official build of Unit for Docker. |
org.opencontainers.image.documentation | https://unit.nginx.org/installation/#docker-images |
org.opencontainers.image.source | https://github.com/nginx/unit |
org.opencontainers.image.title | Unit (php8.2) |
org.opencontainers.image.url | https://unit.nginx.org |
org.opencontainers.image.vendor | NGINX Docker Maintainers <docker-maint@nginx.com> |
org.opencontainers.image.version | 1.31.1 |
Details
2024-02-21 21:26:10 -05:00
Versions (2)
View all
Container
6
OCI / Docker
linux/amd64
211 MiB