mirror of
https://github.com/manualdousuario/marreta.git
synced 2025-04-07 14:19:08 +00:00
implementação do opcache
This commit is contained in:
parent
7f1bf662e3
commit
b85ba6d526
2 changed files with 15 additions and 2 deletions
10
Dockerfile
10
Dockerfile
|
@ -9,10 +9,16 @@ RUN apt-get update && apt-get install -y \
|
||||||
git \
|
git \
|
||||||
htop \
|
htop \
|
||||||
libzip-dev \
|
libzip-dev \
|
||||||
&& docker-php-ext-install zip
|
&& docker-php-ext-install zip opcache \
|
||||||
|
&& docker-php-ext-enable opcache
|
||||||
|
|
||||||
|
# Copia a configuração do OPCache
|
||||||
|
COPY opcache.ini /usr/local/etc/php/conf.d/opcache.ini
|
||||||
|
|
||||||
|
# Instala o Composer
|
||||||
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
|
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
|
||||||
|
|
||||||
|
# Copia a configuração do webservice
|
||||||
COPY default.conf /etc/nginx/sites-available/default
|
COPY default.conf /etc/nginx/sites-available/default
|
||||||
|
|
||||||
RUN mkdir -p /app
|
RUN mkdir -p /app
|
||||||
|
|
7
opcache.ini
Normal file
7
opcache.ini
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
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
|
Loading…
Add table
Reference in a new issue