We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9bab27e commit 5a3e020Copy full SHA for 5a3e020
php/Dockerfile
@@ -1,5 +1,5 @@
1
ARG PHP_SHORT_VERSION=7.4
2
-ARG APCU_VERSION=5.1.24
+ARG APCU_VERSION=5.1.28
3
4
FROM php:${PHP_SHORT_VERSION}-fpm-alpine
5
@@ -55,9 +55,13 @@ RUN set -eux; \
55
apcu-${APCU_VERSION} \
56
; \
57
pecl clear-cache; \
58
+ # Opcache is built into core of PHP binary from version 8.5
59
+ if [[ 1 -eq "$(echo "$PHP_SHORT_VERSION < 8.5" | bc)" ]] ; \
60
+ then \
61
+ docker-php-ext-enable opcache; \
62
+ fi; \
63
docker-php-ext-enable \
64
apcu \
- opcache \
65
66
\
67
runDeps="$( \
0 commit comments