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:
@@ -3,5 +3,4 @@
|
|||||||
/vendor/
|
/vendor/
|
||||||
/var/
|
/var/
|
||||||
/public/bundles/
|
/public/bundles/
|
||||||
composer.lock
|
|
||||||
/.phpunit.cache
|
/.phpunit.cache
|
||||||
|
|||||||
+4
-4
@@ -1,9 +1,9 @@
|
|||||||
FROM dunglas/frankenphp:1-php8.4-alpine AS base
|
FROM dunglas/frankenphp:1-php8.4-alpine AS base
|
||||||
|
|
||||||
RUN apk add --no-cache \
|
RUN apk add --no-cache icu-dev libzip-dev \
|
||||||
curl \
|
&& docker-php-ext-install -j$(nproc) intl \
|
||||||
icu-libs \
|
&& apk del icu-dev libzip-dev \
|
||||||
libzip
|
&& apk add --no-cache curl icu-libs libzip
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
|||||||
Generated
+6053
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user