Fix library.json empty in Docker builds — pydantic dep in Dockerfile #64
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
The Dockerfile extract stage runs
export_library.pywhich importsbib.store→bib.item→pydantic. But pydantic isn't installed in the extract stage, so the import fails silently and writes empty JSON.Already fixed locally with
uv run --with pydantic, but need to verify the fix persists and add a build-time assertion.Fix
docs/Dockerfileline 15 usesuv run --with pydantic python docs/scripts/export_library.pynginx.confcache headers for JSON:no-cache, must-revalidateAlso
Files
docs/Dockerfiledocs/scripts/export_library.pydocs/nginx.conf