From 3ce4a0e87f5354e8e5a92515ee099f40ce099505 Mon Sep 17 00:00:00 2001 From: boyska Date: Fri, 17 Aug 2018 16:00:14 +0200 Subject: [PATCH] cache in /var/cache this should be configurable --- Dockerfile | 3 ++- index.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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');