Skip to content
Snippets Groups Projects
Commit 8458dfdf authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

removed opcache from development added fileinfo module

parent cdb1c813
No related branches found
No related tags found
2 merge requests!1531Development,!1530Resolve "Membership form and link to source code not working"
...@@ -24,6 +24,7 @@ RUN apk add --update \ ...@@ -24,6 +24,7 @@ RUN apk add --update \
php7-json \ php7-json \
php7-pcntl \ php7-pcntl \
php7-opcache \ php7-opcache \
php7-fileinfo \
&& rm -rf /var/cache/apk/* && rm -rf /var/cache/apk/*
WORKDIR /html WORKDIR /html
......
...@@ -23,7 +23,7 @@ RUN apk add --update \ ...@@ -23,7 +23,7 @@ RUN apk add --update \
php7-gd \ php7-gd \
php7-json \ php7-json \
php7-pcntl \ php7-pcntl \
php7-opcache \ php7-fileinfo \
&& rm -rf /var/cache/apk/* && rm -rf /var/cache/apk/*
WORKDIR /html WORKDIR /html
...@@ -37,14 +37,6 @@ RUN sed -i 's/user = nobody/user = nginx/g' /etc/php7/php-fpm.d/www.conf && \ ...@@ -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/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/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 && \ 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 && \ echo "daemonize yes" >> /etc/redis.conf && \
ln -s /dev/null /var/log/nginx/access.log && \ ln -s /dev/null /var/log/nginx/access.log && \
ln -s /dev/stdout /var/log/nginx/error.log && \ ln -s /dev/stdout /var/log/nginx/error.log && \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment