Compile the installed ArchiveBox package

This commit is contained in:
Nick Sweeting 2026-08-16 20:07:16 -07:00
parent f21902df95
commit 34f7ce3cbf
No known key found for this signature in database

View File

@ -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