From 2c2795f28717b30c6a548934e0ba3dde08d19194 Mon Sep 17 00:00:00 2001 From: Xander Smeets Date: Tue, 20 Feb 2024 13:37:45 +0100 Subject: [PATCH] Fix supervisord issues --- Dockerfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Dockerfile b/Dockerfile index dcdc13a..1834f99 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,12 @@ FROM ghcr.io/paperless-ngx/paperless-ngx:latest RUN useradd --home-dir /home/container --create-home --non-unique --uid 1000 --gid 1000 container +RUN sed -i 's;logfile=/var/log/supervisord/supervisord.log;logfile=/home/container/supervisord/supervisord.log;g' /etc/supervisord.conf +RUN sed -i 's;pidfile=/var/log/supervisord/supervisord.pid;pidfile=/home/container/supervisord/supervisord.pid;g' /etc/supervisord.conf +RUN sed -i 's;user=root;user=container;g' /etc/supervisord.conf +RUN sed -i 's;user=paperless;user=container;g' /etc/supervisord.conf +RUN sed -i 's;environment = HOME="/usr/src/paperless",USER="paperless";environment = HOME="/home/container",USER="container";g' /etc/supervisord.conf + USER container ENV USER=container HOME=/home/container