Skip to content
Merged
Show file tree
Hide file tree
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
8 changes: 8 additions & 0 deletions .docker/php/opcache.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[opcache]
opcache.memory_consumption=128
opcache.interned_strings_buffer=8
opcache.max_accelerated_files=4000
opcache.revalidate_freq=60
opcache.fast_shutdown=1
opcache.enable_cli=1
opcache.enable=1
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ RUN composer install --no-dev --optimize-autoloader --prefer-dist
FROM php:7.4-cli as rector
WORKDIR /rector

RUN docker-php-ext-configure opcache --enable-opcache \
&& docker-php-ext-install opcache

# Copy configuration
COPY .docker/php/opcache.ini /usr/local/etc/php/conf.d/conf.d/

COPY --from=composer /app .
COPY . .

Expand Down