Skip to content

Commit

Permalink
Merge pull request #410 from sigwinhq/feat/opcache-cli
Browse files Browse the repository at this point in the history
feat: enable Opcache in CLI
  • Loading branch information
jakzal authored Jun 11, 2023
2 parents d45106e + 90521a0 commit 64053b8
Showing 1 changed file with 7 additions and 0 deletions.
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"

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

0 comments on commit 64053b8

Please sign in to comment.