Block a user
symfony-ci (20261127-1028)
Published 2026-11-27 10:28:27 +01:00 by christophe
Installation
docker pull dev.crfamille.fr/christophe/symfony-ci:20261127-1028sha256:b3e1a21ac7dad5143e26d5b34325d958f1c940898ad76a6771992f13cf771759
Image Layers
| # debian.sh --arch 'amd64' out/ 'bookworm' '@1789689600' |
| RUN /bin/sh -c set -eux; { echo 'Package: php*'; echo 'Pin: release *'; echo 'Pin-Priority: -1'; } > /etc/apt/preferences.d/no-debian-php # buildkit |
| ENV PHPIZE_DEPS=autoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c |
| RUN /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/* # buildkit |
| ENV PHP_INI_DIR=/usr/local/etc/php |
| RUN /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 # buildkit |
| 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=AFD8691FDAEDF03BDF6E460563F15A9B715376CA 9D7F99A0CB8F05C8A6958D6256A97AF7600A39A6 0616E93D95AF471243E26761770426E17EBBB3DD |
| ENV PHP_VERSION=8.4.26 |
| ENV PHP_URL=https://www.php.net/distributions/php-8.4.26.tar.xz PHP_ASC_URL=https://www.php.net/distributions/php-8.4.26.tar.xz.asc |
| ENV PHP_SHA256=32a2de53862ad44ed4a5005244ce4f1b50c271e74dced215449a4443b40569f1 |
| RUN /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; 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"; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark > /dev/null; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false # buildkit |
| COPY docker-php-source /usr/local/bin/ # buildkit |
| RUN /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; case "$gnuArch" in 'i686-linux-'*) export CFLAGS="$CFLAGS -msse2 -mfpmath=sse" CPPFLAGS="$CPPFLAGS -msse2 -mfpmath=sse" ; ;; esac; test "$PHP_INI_DIR" != "${PHP_INI_DIR%/php}"; ./configure --build="$gnuArch" --sysconfdir="${PHP_INI_DIR%/php}" --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 --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); printf "*%s\n", so }' | sort -u | xargs -rt dpkg-query --search | awk 'sub(":$", "", $1) { print $1 }' | 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 # buildkit |
| COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ # buildkit |
| RUN /bin/sh -c docker-php-ext-enable opcache # buildkit |
| RUN /bin/sh -c docker-php-ext-enable sodium # buildkit |
| ENTRYPOINT ["docker-php-entrypoint"] |
| CMD ["php" "-a"] |
| ARG NODE_MAJOR=22 |
| ENV DEBIAN_FRONTEND=noninteractive COMPOSER_ALLOW_SUPERUSER=1 COMPOSER_HOME=/tmp/composer APP_ENV=test |
| RUN |1 NODE_MAJOR=22 /bin/sh -c apt-get update && apt-get install -y --no-install-recommends ca-certificates curl git unzip zip mariadb-server mariadb-client libicu-dev libzip-dev libxml2-dev libonig-dev libpng-dev libjpeg62-turbo-dev libfreetype6-dev libxslt1-dev libpq-dev pkg-config build-essential && rm -rf /var/lib/apt/lists/* # buildkit |
| RUN |1 NODE_MAJOR=22 /bin/sh -c docker-php-ext-configure gd --with-freetype --with-jpeg && docker-php-ext-install -j"$(nproc)" intl mbstring opcache pdo_mysql pdo_pgsql zip xml xsl gd bcmath # buildkit |
| COPY /usr/bin/composer /usr/bin/composer # buildkit |
| RUN |1 NODE_MAJOR=22 /bin/sh -c curl -fsSL "https://deb.nodesource.com/setup_${NODE_MAJOR}.x" | bash - && apt-get update && apt-get install -y --no-install-recommends nodejs && npm install -g npm@latest && rm -rf /var/lib/apt/lists/* # buildkit |
| ARG PLAYWRIGHT_VERSION=1.63.0 |
| ENV PLAYWRIGHT_BROWSERS_PATH=/opt/playwright-browsers CI_PLAYWRIGHT_VERSION=1.63.0 |
| RUN |2 NODE_MAJOR=22 PLAYWRIGHT_VERSION=1.63.0 /bin/sh -c npm install --prefix /opt/ci-playwright --no-audit --no-fund "playwright@${PLAYWRIGHT_VERSION}" && node /opt/ci-playwright/node_modules/playwright/cli.js install --with-deps chromium && chmod -R a+rX /opt/playwright-browsers && rm -rf /var/lib/apt/lists/* # buildkit |
| RUN |2 NODE_MAJOR=22 PLAYWRIGHT_VERSION=1.63.0 /bin/sh -c mkdir -p /run/mysqld && chown mysql:mysql /run/mysqld && mkdir -p /var/lib/mysql && chown -R mysql:mysql /var/lib/mysql # buildkit |
| COPY entrypoint-symfony-ci.sh /usr/local/bin/entrypoint-symfony-ci # buildkit |
| RUN |2 NODE_MAJOR=22 PLAYWRIGHT_VERSION=1.63.0 /bin/sh -c chmod +x /usr/local/bin/entrypoint-symfony-ci # buildkit |
| WORKDIR /app |
| ENTRYPOINT ["entrypoint-symfony-ci"] |
| CMD ["bash"] |
Details
2026-11-27 10:28:27 +01:00
Versions (4)
View all
Container
0
OCI / Docker
linux/amd64
754 MiB