fix(output): allow pdf builds as non-root
This commit is contained in:
@@ -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/*
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user