fix(docker): commit composer.lock and install intl extension

- Remove composer.lock from .gitignore so it is tracked and included in
  the build context; without it composer install resolves fresh versions
  on every CI build, causing cache/vendor mismatches that produce the
  RewindableGenerator and LazyGhostTrait runtime errors in prod
- Install the intl PHP extension in the base stage to remove the
  Symfony startup deprecation warning; icu-dev and libzip-dev are only
  kept for the compile step, then deleted to keep the layer lean

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-30 15:41:17 +02:00
parent 841f4329de
commit ecdb8c1716
3 changed files with 6057 additions and 5 deletions
+4 -4
View File
@@ -1,9 +1,9 @@
FROM dunglas/frankenphp:1-php8.4-alpine AS base
RUN apk add --no-cache \
curl \
icu-libs \
libzip
RUN apk add --no-cache icu-dev libzip-dev \
&& docker-php-ext-install -j$(nproc) intl \
&& apk del icu-dev libzip-dev \
&& apk add --no-cache curl icu-libs libzip
WORKDIR /app