From 34f7ce3cbf106881f465cbb09b616b10a0fce271 Mon Sep 17 00:00:00 2001 From: Nick Sweeting Date: Sun, 16 Aug 2026 20:07:16 -0700 Subject: [PATCH] Compile the installed ArchiveBox package --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 028d9992..10a7778f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -187,10 +187,10 @@ RUN echo "[*] Installing ArchiveBox Python source code from $CODE_DIR..." \ && if [[ "$COMMIT_HASH" =~ ^[0-9a-fA-F]{40}$ ]]; then echo "COMMIT_HASH=$COMMIT_HASH" | tee -a /VERSION.txt; fi \ && /usr/bin/uv pip install --no-cache --no-deps "$CODE_DIR" \ && rm -f /venv/bin/uv /venv/bin/uvx \ + && cd / \ && ARCHIVEBOX_PY_DIR="$(/venv/bin/python -c 'import pathlib, archivebox; print(pathlib.Path(archivebox.__file__).parent)')" \ && /venv/bin/python -m compileall --invalidation-mode checked-hash -q "$ARCHIVEBOX_PY_DIR" \ && find /venv -exec touch -h -d "@$(date +%s)" {} + \ - && cd / \ && test -f "$(/venv/bin/python -c 'import archivebox; print(archivebox.__cached__)')" \ && /usr/bin/uv pip show archivebox | tee -a /VERSION.txt