Browse Source

cache in /var/cache

this should be configurable
boyska 5 years ago
parent
commit
3ce4a0e87f
2 changed files with 3 additions and 2 deletions
  1. 2 1
      Dockerfile
  2. 1 1
      index.php

+ 2 - 1
Dockerfile

@@ -2,4 +2,5 @@ FROM ulsmith/alpine-apache-php7
 
 COPY ./ /app/public/
 
-RUN chown -R apache:root /app/public
+RUN mkdir -p /var/cache/rss-bridge/ && \
+        chown -R apache:root /app/public /var/cache/rss-bridge/

+ 1 - 1
index.php

@@ -4,7 +4,7 @@ require_once __DIR__ . '/lib/RssBridge.php';
 define('PHP_VERSION_REQUIRED', '5.6.0');
 
 // Specify directory for cached files (using FileCache)
-define('CACHE_DIR', __DIR__ . '/cache');
+define('CACHE_DIR', '/var/cache/rss-bridge');
 
 // Specify path for whitelist file
 define('WHITELIST_FILE', __DIR__ . '/whitelist.txt');