File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -147,15 +147,12 @@ FROM thecodingmachine/php:{{ $image.php_version }}-v4-slim-apache
147
147
148
148
Beware! The ` ARG PHP_EXTENSIONS ` command must be written before the ` FROM ` . This is not a typo.
149
149
150
- Note: the slim image comes with literally no extensions. Not even "opcache" which is definitely useful performance-wise.
151
- We highly recommend to install at least the "opcache" extension.
152
-
153
150
** Heads up** : if you are using multistage builds, the "ARG" variable must be put at the very top of the file (before the
154
151
first FROM):
155
152
156
153
``` Dockerfile
157
154
# The PHP_EXTENSIONS ARG will apply to the "slim" image
158
- ARG PHP_EXTENSIONS="apcu mysqli opcache pdo_mysql zip soap"
155
+ ARG PHP_EXTENSIONS="apcu mysqli pdo_mysql soap"
159
156
160
157
FROM thecodingmachine/php:7.2-v4-apache-node10 AS builder
161
158
You can’t perform that action at this time.
0 commit comments