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