Skip to content

Commit 52ea463

Browse files
committed
fix: omit opcache from php 8.5 prod images
- remove opcache from generated PHP 8.5 production Dockerfiles - keep opcache enabled for production images before PHP 8.5 - update Alpine and Debian templates to apply the version guard
1 parent b567416 commit 52ea463

4 files changed

Lines changed: 2 additions & 4 deletions

File tree

8.5-debian-prod/Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ RUN useradd -m -u 1337 kool \
5252
intl \
5353
ldap \
5454
mbstring \
55-
opcache \
5655
pcntl \
5756
pdo \
5857
pdo_mysql \

8.5-prod/Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ RUN adduser -D -u 1337 kool \
4747
intl \
4848
ldap \
4949
mbstring \
50-
opcache \
5150
pcntl \
5251
pdo \
5352
pdo_mysql \

template/Dockerfile-debian.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
intl \
5656
ldap \
5757
mbstring \
58-
@if ($prod)
58+
@if ($prod && version_compare($version, '8.5', '<'))
5959
opcache \
6060
@endif
6161
pcntl \

template/Dockerfile.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
intl \
5858
ldap \
5959
mbstring \
60-
@if ($prod)
60+
@if ($prod && version_compare($version, '8.5', '<'))
6161
opcache \
6262
@endif
6363
pcntl \

0 commit comments

Comments
 (0)