Skip to content
This repository has been archived by the owner on Feb 20, 2024. It is now read-only.

Commit

Permalink
Fix supervisord issues
Browse files Browse the repository at this point in the history
  • Loading branch information
XSmeets committed Feb 20, 2024
1 parent 9387a42 commit 2c2795f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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

Expand Down

0 comments on commit 2c2795f

Please sign in to comment.