diff --git a/Dockerfile b/Dockerfile index 6e8ac66..464e64b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,6 +10,7 @@ RUN \ php5-dom \ php5-gd \ php5-intl \ + php5-opcache \ php5-openssl \ php5-pdo_sqlite diff --git a/README.md b/README.md index 5ff9422..ae8c3e9 100644 --- a/README.md +++ b/README.md @@ -93,5 +93,6 @@ Unlike other implementations of COPS in a docker container, the linuxserver ver ## Version Log -+ + **28.08.16:** Add badges to README. -+ + **12.08.16:** Release ++ **29.08.16:** Add php5-opcache. ++ **28.08.16:** Add badges to README. ++ **12.08.16:** Release diff --git a/root/defaults/config_local.php b/root/defaults/config_local.php index c5a5b14..37afa4d 100644 --- a/root/defaults/config_local.php +++ b/root/defaults/config_local.php @@ -33,7 +33,11 @@ */ $config['cops_x_accel_redirect'] = "X-Accel-Redirect"; - + /* Enable cache folder + * especially useful for lower power hosts + */ + $config['cops_thumbnail_handling'] = ""; + $config['cops_thumbnail_cache_directory'] = "/config/cache/"; /* * Enable and configure Send To Kindle (or Email) feature. * diff --git a/root/etc/cont-init.d/40-config b/root/etc/cont-init.d/40-config index a0ded90..30971eb 100644 --- a/root/etc/cont-init.d/40-config +++ b/root/etc/cont-init.d/40-config @@ -1,5 +1,9 @@ #!/usr/bin/with-contenv bash +# create folders +mkdir -p \ + /config/cache + # make symlink [[ ! -e /var/www/localhost/cops ]] && \ ln -s /usr/share/webapps/cops /var/www/localhost/cops