Skip to content

Commit b544263

Browse files
Only load opcache extension on PHP earlier than 8.5
1 parent 71999a2 commit b544263

File tree

8 files changed

+11
-2
lines changed

8 files changed

+11
-2
lines changed

layers/fpm/bref.ini

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,3 @@ upload_max_filesize=6M
4747
extension_dir=/opt/bref/extensions
4848
; Extensions enabled by default
4949
extension=pdo_mysql.so
50-
zend_extension=opcache.so

layers/function/bref.ini

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,3 @@ variables_order="EGPCS"
4141
extension_dir=/opt/bref/extensions
4242
; Extensions enabled by default
4343
extension=pdo_mysql.so
44-
zend_extension=opcache.so

layers/opcache.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
zend_extension=opcache.so

php-80/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -514,6 +514,7 @@ COPY --link layers/bootstrap.php /opt/bref/bootstrap.php
514514
FROM isolation as function
515515

516516
COPY --link layers/function/bref.ini /opt/bref/etc/php/conf.d/
517+
COPY --link layers/opcache.ini /opt/bref/etc/php/conf.d/
517518

518519
COPY --link layers/function/bootstrap.sh /opt/bootstrap
519520
# Copy files to /var/runtime to support deploying as a Docker image
@@ -537,6 +538,7 @@ FROM isolation as fpm
537538
COPY --link --from=fpm-extension /bref-layer /opt
538539

539540
COPY --link layers/fpm/bref.ini /opt/bref/etc/php/conf.d/
541+
COPY --link layers/opcache.ini /opt/bref/etc/php/conf.d/
540542

541543
COPY --link layers/fpm/bootstrap.sh /opt/bootstrap
542544
# Copy files to /var/runtime to support deploying as a Docker image

php-81/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -536,6 +536,7 @@ COPY --link layers/bootstrap.php /opt/bref/bootstrap.php
536536
FROM isolation as function
537537

538538
COPY --link layers/function/bref.ini /opt/bref/etc/php/conf.d/
539+
COPY --link layers/opcache.ini /opt/bref/etc/php/conf.d/
539540

540541
COPY --link layers/function/bootstrap.sh /opt/bootstrap
541542
# Copy files to /var/runtime to support deploying as a Docker image
@@ -559,6 +560,7 @@ FROM isolation as fpm
559560
COPY --link --from=fpm-extension /bref-layer /opt
560561

561562
COPY --link layers/fpm/bref.ini /opt/bref/etc/php/conf.d/
563+
COPY --link layers/opcache.ini /opt/bref/etc/php/conf.d/
562564

563565
COPY --link layers/fpm/bootstrap.sh /opt/bootstrap
564566
# Copy files to /var/runtime to support deploying as a Docker image

php-82/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -536,6 +536,7 @@ COPY --link layers/bootstrap.php /opt/bref/bootstrap.php
536536
FROM isolation as function
537537

538538
COPY --link layers/function/bref.ini /opt/bref/etc/php/conf.d/
539+
COPY --link layers/opcache.ini /opt/bref/etc/php/conf.d/
539540

540541
COPY --link layers/function/bootstrap.sh /opt/bootstrap
541542
# Copy files to /var/runtime to support deploying as a Docker image
@@ -559,6 +560,7 @@ FROM isolation as fpm
559560
COPY --link --from=fpm-extension /bref-layer /opt
560561

561562
COPY --link layers/fpm/bref.ini /opt/bref/etc/php/conf.d/
563+
COPY --link layers/opcache.ini /opt/bref/etc/php/conf.d/
562564

563565
COPY --link layers/fpm/bootstrap.sh /opt/bootstrap
564566
# Copy files to /var/runtime to support deploying as a Docker image

php-83/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -536,6 +536,7 @@ COPY --link layers/bootstrap.php /opt/bref/bootstrap.php
536536
FROM isolation as function
537537

538538
COPY --link layers/function/bref.ini /opt/bref/etc/php/conf.d/
539+
COPY --link layers/opcache.ini /opt/bref/etc/php/conf.d/
539540

540541
COPY --link layers/function/bootstrap.sh /opt/bootstrap
541542
# Copy files to /var/runtime to support deploying as a Docker image
@@ -559,6 +560,7 @@ FROM isolation as fpm
559560
COPY --link --from=fpm-extension /bref-layer /opt
560561

561562
COPY --link layers/fpm/bref.ini /opt/bref/etc/php/conf.d/
563+
COPY --link layers/opcache.ini /opt/bref/etc/php/conf.d/
562564

563565
COPY --link layers/fpm/bootstrap.sh /opt/bootstrap
564566
# Copy files to /var/runtime to support deploying as a Docker image

php-84/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -537,6 +537,7 @@ COPY --link layers/bootstrap.php /opt/bref/bootstrap.php
537537
FROM isolation as function
538538

539539
COPY --link layers/function/bref.ini /opt/bref/etc/php/conf.d/
540+
COPY --link layers/opcache.ini /opt/bref/etc/php/conf.d/
540541

541542
COPY --link layers/function/bootstrap.sh /opt/bootstrap
542543
# Copy files to /var/runtime to support deploying as a Docker image
@@ -560,6 +561,7 @@ FROM isolation as fpm
560561
COPY --link --from=fpm-extension /bref-layer /opt
561562

562563
COPY --link layers/fpm/bref.ini /opt/bref/etc/php/conf.d/
564+
COPY --link layers/opcache.ini /opt/bref/etc/php/conf.d/
563565

564566
COPY --link layers/fpm/bootstrap.sh /opt/bootstrap
565567
# Copy files to /var/runtime to support deploying as a Docker image

0 commit comments

Comments
 (0)