aboutsummaryrefslogtreecommitdiff
path: root/Docker/Dockerfile
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2021-11-14 23:25:27 +0100
committerGravatar GitHub <noreply@github.com> 2021-11-14 23:25:27 +0100
commit81b00bd8aacb0627ebb810b9100ee800bf53326f (patch)
tree291d6f0f5d4ac5b974ce908b9897bd4e028ce8a8 /Docker/Dockerfile
parentb780ef5276407bd681b201ced2d75cb442b8cd38 (diff)
Docker: Move logic to disable FreshRSS updates (#3973)
Should be done during build and not during entrypoint, to avoid modifying a potential volume (e.g. mounting the source code as a volume is used during development).
Diffstat (limited to 'Docker/Dockerfile')
-rw-r--r--Docker/Dockerfile2
1 files changed, 2 insertions, 0 deletions
diff --git a/Docker/Dockerfile b/Docker/Dockerfile
index a08740449..b462263fb 100644
--- a/Docker/Dockerfile
+++ b/Docker/Dockerfile
@@ -42,6 +42,8 @@ RUN a2dismod -f alias autoindex negotiation status && \
RUN sed -r -i "/^\s*(CustomLog|ErrorLog|Listen) /s/^/#/" /etc/apache2/apache2.conf && \
sed -r -i "/^\s*Listen /s/^/#/" /etc/apache2/ports.conf && \
+ # Disable built-in updates when using Docker, as the full image is supposed to be updated instead.
+ sed -r -i "\\#disable_update#s#^.*#\t'disable_update' => true,#" ./config.default.php && \
touch /var/www/FreshRSS/Docker/env.txt && \
echo "7,37 * * * * . /var/www/FreshRSS/Docker/env.txt; \
su www-data -s /bin/sh -c 'php /var/www/FreshRSS/app/actualize_script.php' \