8000 fix(docker): survive slow networks while installing Python packages by adeelahmad · Pull Request #182 · adeelahmad/lense · GitHub
[go: up one dir, main page]

Skip to content

fix(docker): survive slow networks while installing Python packages - #182

Merged
adeelahmad merged 2 commits into
mainfrom
claude/project-thread-ew7xm6
Oct 5, 2026
Merged

adeelahmad merged 2 commits into
mainfrom
claude/project-thread-ew7xm6

Conversation

@adeelahmad
Copy link
Copy Markdown
Owner

Requested by Adeel · project thread

Before: on a slow link the one-command setup failed in the backend image build, because uv gave up on a big wheel (ctranslate2 on arm64) after its default 30 second timeout, and a rerun downloaded everything again.

After: uv waits up to 300 seconds per read and retries 5 times, and the image's uv sync steps use a BuildKit cache mount, so a rerun resumes from what was already downloaded. The cache stays outside the image (UV_NO_CACHE still applies at runtime).

How: UV_HTTP_TIMEOUT=300 and UV_HTTP_RETRIES=5 in fastapi_backend/Dockerfile, Dockerfile.cloudron and the Proxmox install script; RUN --mount=type=cache,target=/root/.cache/uv env -u UV_NO_CACHE uv sync ... for the three sync steps in the backend image.

🤖 Generated with Claude Code

https://claude.ai/code/session_01GP566GcZrYdzeWsGQeDCYA


Generated by Claude Code

uv gave up on big wheels (ctranslate2 on arm64) after its default 30 s read
timeout, failing the one-command install. Allow 300 s with 5 retries, and give
the image's uv sync steps a BuildKit cache mount so a rerun resumes from what
was already downloaded (the cache stays out of the image).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GP566GcZrYdzeWsGQeDCYA
@adeelahmad
adeelahmad merged commit c407a20 into main Oct 5, 2026
6 checks passed
@adeelahmad
adeelahmad deleted the claude/project-thread-ew7xm6 branch October 5, 2026 12:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

0