fix(output): allow pdf builds as non-root

This commit is contained in:
2025-10-15 15:09:37 -05:00
parent e9c4ba77b6
commit f53aef6237
2 changed files with 5 additions and 0 deletions

View File

@@ -11,6 +11,7 @@ RUN apt-get update \
gosu \ gosu \
pandoc \ pandoc \
texlive-full \ texlive-full \
&& fc-cache -f \
&& apt-get clean \ && apt-get clean \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*

View File

@@ -14,5 +14,9 @@ if [ -d /data ]; then
fi fi
export HOME=${HOME:-/tmp} export HOME=${HOME:-/tmp}
export XDG_CACHE_HOME=${XDG_CACHE_HOME:-/tmp/.cache}
mkdir -p "${HOME}/.cache/fontconfig"
mkdir -p "${XDG_CACHE_HOME}/fontconfig"
exec gosu "${PUID}:${PGID}" python3 /app/watch_and_convert.py exec gosu "${PUID}:${PGID}" python3 /app/watch_and_convert.py