Skip to content

Commit b85ba6d

Browse files
committed
implementação do opcache
1 parent 7f1bf66 commit b85ba6d

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

Dockerfile

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,16 @@ RUN apt-get update && apt-get install -y \
99
git \
1010
htop \
1111
libzip-dev \
12-
&& docker-php-ext-install zip
13-
12+
&& docker-php-ext-install zip opcache \
13+
&& docker-php-ext-enable opcache
14+
15+
# Copia a configuração do OPCache
16+
COPY opcache.ini /usr/local/etc/php/conf.d/opcache.ini
17+
18+
# Instala o Composer
1419
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
1520

21+
# Copia a configuração do webservice
1622
COPY default.conf /etc/nginx/sites-available/default
1723

1824
RUN mkdir -p /app

opcache.ini

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
opcache.memory_consumption=128
2+
opcache.interned_strings_buffer=8
3+
opcache.max_accelerated_files=4000
4+
opcache.revalidate_freq=60
5+
opcache.fast_shutdown=1
6+
opcache.enable_cli=1
7+
opcache.enable=1

0 commit comments

Comments
 (0)