diff --git a/Dockerfile b/Dockerfile index 35caac8..caa89f6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,4 +2,5 @@ FROM ulsmith/alpine-apache-php7 COPY ./ /app/public/ -RUN chown -R apache:root /app/public \ No newline at end of file +RUN mkdir -p /var/cache/rss-bridge/ && \ + chown -R apache:root /app/public /var/cache/rss-bridge/ diff --git a/index.php b/index.php index f141d49..8b24fa0 100644 --- a/index.php +++ b/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');