Repository navigation
fix(docker): survive slow networks while installing Python packages - #182
Merged
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 syncsteps use a BuildKit cache mount, so a rerun resumes from what was already downloaded. The cache stays outside the image (UV_NO_CACHEstill applies at runtime).How:
UV_HTTP_TIMEOUT=300andUV_HTTP_RETRIES=5infastapi_backend/Dockerfile,Dockerfile.cloudronand 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