Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: enable Opcache in CLI #410

Merged
merged 2 commits into from
Jun 11, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,15 @@ phar.readonly=0
pcov.enabled=0
EOF

COPY --link <<EOF /usr/local/etc/php/conf.d/opcache.ini
zend_extension=opcache.so
opcache.enable=1
opcache.enable_cli=1
EOF

# Validate the PHP configuration
RUN php --ini | grep phpqa.ini
RUN php --rz "Zend OPcache"
jakzal marked this conversation as resolved.
Show resolved Hide resolved

ARG TOOLBOX_TARGET_DIR="/tools"
ENV TOOLBOX_TARGET_DIR="${TOOLBOX_TARGET_DIR}"
Expand Down