From c90bac174084bc95694f10f9177a90b7b74e6f13 Mon Sep 17 00:00:00 2001 From: thibaud-leclere Date: Tue, 5 May 2026 09:49:04 +0200 Subject: [PATCH] build: align php docker runtime --- composer.json | 3 +++ composer.lock | 28 ++++++++++++++++------------ docker/Dockerfile | 5 +++-- docker/php/php.ini | 3 --- 4 files changed, 22 insertions(+), 17 deletions(-) diff --git a/composer.json b/composer.json index 7c3b0f1..6da7c93 100644 --- a/composer.json +++ b/composer.json @@ -47,6 +47,9 @@ "symfony/flex": true, "symfony/runtime": true }, + "platform": { + "php": "8.3.30" + }, "sort-packages": true }, "scripts": { diff --git a/composer.lock b/composer.lock index 5d06410..703ffc9 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "6beed8f1ac153d1adfa179bbb64a92ea", + "content-hash": "f08f8e138183852b122a328a791b64f8", "packages": [ { "name": "doctrine/collections", @@ -635,29 +635,30 @@ }, { "name": "doctrine/instantiator", - "version": "2.1.0", + "version": "2.0.0", "source": { "type": "git", "url": "https://github.com/doctrine/instantiator.git", - "reference": "23da848e1a2308728fe5fdddabf4be17ff9720c7" + "reference": "c6222283fa3f4ac679f8b9ced9a4e23f163e80d0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/instantiator/zipball/23da848e1a2308728fe5fdddabf4be17ff9720c7", - "reference": "23da848e1a2308728fe5fdddabf4be17ff9720c7", + "url": "https://api.github.com/repos/doctrine/instantiator/zipball/c6222283fa3f4ac679f8b9ced9a4e23f163e80d0", + "reference": "c6222283fa3f4ac679f8b9ced9a4e23f163e80d0", "shasum": "" }, "require": { - "php": "^8.4" + "php": "^8.1" }, "require-dev": { - "doctrine/coding-standard": "^14", + "doctrine/coding-standard": "^11", "ext-pdo": "*", "ext-phar": "*", "phpbench/phpbench": "^1.2", - "phpstan/phpstan": "^2.1", - "phpstan/phpstan-phpunit": "^2.0", - "phpunit/phpunit": "^10.5.58" + "phpstan/phpstan": "^1.9.4", + "phpstan/phpstan-phpunit": "^1.3", + "phpunit/phpunit": "^9.5.27", + "vimeo/psalm": "^5.4" }, "type": "library", "autoload": { @@ -684,7 +685,7 @@ ], "support": { "issues": "https://github.com/doctrine/instantiator/issues", - "source": "https://github.com/doctrine/instantiator/tree/2.1.0" + "source": "https://github.com/doctrine/instantiator/tree/2.0.0" }, "funding": [ { @@ -700,7 +701,7 @@ "type": "tidelift" } ], - "time": "2026-01-05T06:47:08+00:00" + "time": "2022-12-30T00:23:10+00:00" }, { "name": "doctrine/lexer", @@ -7897,5 +7898,8 @@ "ext-iconv": "*" }, "platform-dev": {}, + "platform-overrides": { + "php": "8.3.30" + }, "plugin-api-version": "2.6.0" } diff --git a/docker/Dockerfile b/docker/Dockerfile index 9234c7b..7dc8ee7 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,12 +1,13 @@ FROM php:8.3-fpm-alpine AS app -RUN apk add --no-cache bash git oniguruma-dev sqlite-dev unzip \ - && docker-php-ext-install mbstring opcache pdo pdo_sqlite +RUN apk add --no-cache bash git unzip COPY --from=composer:2 /usr/bin/composer /usr/bin/composer WORKDIR /app +ENV APP_ENV=prod APP_DEBUG=0 + COPY composer.json composer.lock ./ RUN composer install --no-dev --prefer-dist --no-interaction --no-progress --no-scripts diff --git a/docker/php/php.ini b/docker/php/php.ini index a2a61ab..aab0d04 100644 --- a/docker/php/php.ini +++ b/docker/php/php.ini @@ -2,6 +2,3 @@ date.timezone=UTC memory_limit=256M upload_max_filesize=2M post_max_size=2M -opcache.enable=1 -opcache.enable_cli=0 -opcache.validate_timestamps=0