From 6abcf10335e89c4d9ef90b1e284e2082c27f9fdb Mon Sep 17 00:00:00 2001 From: Reto Bollinger Date: Fri, 10 Jan 2025 10:33:24 +0100 Subject: [PATCH] Adjusted entrypoint.sh to place python cache directory in tmp to not messup directory structure --- lektor/docker/entrypoint.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lektor/docker/entrypoint.sh b/lektor/docker/entrypoint.sh index e37f8f2..114b848 100644 --- a/lektor/docker/entrypoint.sh +++ b/lektor/docker/entrypoint.sh @@ -1,5 +1,7 @@ #!/bin/bash +export PYTHONPYCACHEPREFIX=/tmp + sh -c ". /opt/venv/bin/activate && exec python /opt/lektor/scripts/calendar-fetcher.py ${CALENDAR_URL} > /opt/lektor/project/content/termine/contents.lr" # TODO As the file reads from the same file as it's output is afterwards piped into this leads to synchronization/buffering issues, we therefore write to a temporaray file and move it to the right place in a subsequent step tempfile=$(mktemp)