clean
This commit is contained in:
34
Dockerfile
34
Dockerfile
@ -97,15 +97,34 @@ RUN apt-get -y purge \
|
||||
# Configure Apache
|
||||
|
||||
RUN set -eux; \
|
||||
docker-php-ext-enable opcache; \
|
||||
a2enmod alias authz_core deflate filter rewrite expires setenvif remoteip headers; \
|
||||
docker-php-ext-enable opcache;
|
||||
|
||||
RUN set -eux; \
|
||||
{ \
|
||||
echo 'opcache.memory_consumption=128'; \
|
||||
echo 'opcache.interned_strings_buffer=8'; \
|
||||
echo 'opcache.max_accelerated_files=4000'; \
|
||||
echo 'opcache.revalidate_freq=2'; \
|
||||
echo 'opcache.save_comments=1'; \
|
||||
echo 'opcache.use_cwd=1'; \
|
||||
echo 'opcache.validate_timestamps=1'; \
|
||||
echo 'opcache.max_accelerated_files=10000'; \
|
||||
echo 'opcache.revalidate_freq=30'; \
|
||||
echo 'opcache.revalidate_path=0'; \
|
||||
} > /usr/local/etc/php/conf.d/opcache-recommended.ini
|
||||
|
||||
RUN { \
|
||||
RUN set -eux; \
|
||||
{ \
|
||||
echo 'memory_limit=256M'; \
|
||||
echo 'max_execution_time=240'; \
|
||||
echo 'max_input_vars=1500'; \
|
||||
} > /usr/local/etc/php/conf.d/typo3-recommended.ini
|
||||
|
||||
RUN set -eux; \
|
||||
{ \
|
||||
echo 'post_max_size=10M'; \
|
||||
echo 'upload_max_filesize=10M'; \
|
||||
} > /usr/local/etc/php/conf.d/upload-recommended.ini
|
||||
|
||||
RUN set -eux; \
|
||||
{ \
|
||||
echo 'error_reporting = E_ERROR | E_WARNING | E_PARSE | E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_COMPILE_WARNING | E_RECOVERABLE_ERROR'; \
|
||||
echo 'display_errors = Off'; \
|
||||
echo 'display_startup_errors = Off'; \
|
||||
@ -118,7 +137,6 @@ RUN { \
|
||||
} > /usr/local/etc/php/conf.d/error-logging.ini
|
||||
|
||||
RUN set -eux; \
|
||||
a2enmod rewrite expires remoteip headers; \
|
||||
{ \
|
||||
echo 'RemoteIPHeader X-Forwarded-For'; \
|
||||
# these IP ranges are reserved for "private" use and should thus *usually* be safe inside Docker
|
||||
@ -131,6 +149,8 @@ RUN set -eux; \
|
||||
a2enconf remoteip; \
|
||||
find /etc/apache2 -type f -name '*.conf' -exec sed -ri 's/([[:space:]]*LogFormat[[:space:]]+"[^"]*)%h([^"]*")/\1%a\2/g' '{}' +
|
||||
|
||||
RUN cp ${PHP_INI_DIR}/php.ini-production ${PHP_INI_DIR}/php.ini
|
||||
|
||||
# install TYPO3 surf
|
||||
# RUN mkdir /usr/local/surf && \
|
||||
# curl -L https://github.com/TYPO3/Surf/releases/download/3.4.6/surf.phar -o /usr/local/surf/surf.phar && \
|
||||
|
Reference in New Issue
Block a user