This repository was archived by the owner on May 21, 2025. It is now read-only.
This repository was archived by the owner on May 21, 2025. It is now read-only.
Disable opcache on dev images by default #8
Closed
Description
As it is now, editing any files via host-mount isn't going to work, because opcache is enabled and validating timestamps.
This is easily overcome with something like:
environment:
PHP_OPCACHE_ENABLE: 0
…but I'm wondering if given that there is a -dev version, it would make sense to do it there by default?
Or maybe, if all -dev
is going to do is enable xdebug…you could just ditch the -dev versions and handle via build args (ENABLE_XDEBUG
).
That may not be a great idea though, as I believe it prevents those layers from being cacheable?