From 8458dfdf98802c58a6528b8893b3cfc8cd5298e2 Mon Sep 17 00:00:00 2001
From: Dominik Hebeler <dominik@suma-ev.de>
Date: Tue, 18 Feb 2020 10:34:32 +0100
Subject: [PATCH] removed opcache from development added fileinfo module

---
 Dockerfile     |  1 +
 Dockerfile.dev | 10 +---------
 2 files changed, 2 insertions(+), 9 deletions(-)

diff --git a/Dockerfile b/Dockerfile
index 38365e8ba..92a2a476b 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -24,6 +24,7 @@ RUN apk add --update \
     php7-json \
     php7-pcntl \
     php7-opcache \
+    php7-fileinfo \
     && rm -rf /var/cache/apk/*
 
 WORKDIR /html
diff --git a/Dockerfile.dev b/Dockerfile.dev
index 131aa0295..235232c5f 100644
--- a/Dockerfile.dev
+++ b/Dockerfile.dev
@@ -23,7 +23,7 @@ RUN apk add --update \
     php7-gd \
     php7-json \
     php7-pcntl \
-    php7-opcache \
+    php7-fileinfo \
     && rm -rf /var/cache/apk/*
 
 WORKDIR /html
@@ -37,14 +37,6 @@ RUN sed -i 's/user = nobody/user = nginx/g' /etc/php7/php-fpm.d/www.conf && \
     sed -i 's/user = www-data/user = nginx/g' /etc/php7/php-fpm.d/www.conf && \
     sed -i 's/group = www-data/group = nginx/g' /etc/php7/php-fpm.d/www.conf && \
     sed -i 's/;cgi.fix_pathinfo=1/cgi.fix_pathinfo=0/g' /etc/php7/php.ini && \
-    # Opcache configuration
-    sed -i 's/;opcache.enable=1/opcache.enable=1/g' /etc/php7/php.ini && \
-    sed -i 's/;opcache.memory_consumption=128/opcache.memory_consumption=128/g' /etc/php7/php.ini && \
-    sed -i 's/;opcache.interned_strings_buffer=8/opcache.interned_strings_buffer=8/g' /etc/php7/php.ini && \
-    sed -i 's/;opcache.max_accelerated_files=10000/opcache.max_accelerated_files=10000/g' /etc/php7/php.ini && \
-    sed -i 's/;opcache.max_wasted_percentage=5/opcache.max_wasted_percentage=5/g' /etc/php7/php.ini && \
-    sed -i 's/;opcache.validate_timestamps=1/opcache.validate_timestamps=1/g' /etc/php7/php.ini && \
-    sed -i 's/;opcache.revalidate_freq=2/opcache.revalidate_freq=300/g' /etc/php7/php.ini && \
     echo "daemonize yes" >> /etc/redis.conf && \
     ln -s /dev/null /var/log/nginx/access.log && \
     ln -s /dev/stdout /var/log/nginx/error.log && \
-- 
GitLab