fix(sandbox): Use pip to install uv in Docker build#1
Open
bheemreddy-samsara wants to merge 1 commit intodcramer:mainfrom
Open
fix(sandbox): Use pip to install uv in Docker build#1bheemreddy-samsara wants to merge 1 commit intodcramer:mainfrom
bheemreddy-samsara wants to merge 1 commit intodcramer:mainfrom
Conversation
The curl-based uv installer fails in some Docker build environments due to SSL certificate verification issues, even with ca-certificates installed and updated. This commonly occurs with Docker Desktop on macOS when corporate proxies or VPNs intercept SSL traffic. Using pip to install uv avoids this issue entirely while achieving the same result. What changed: - Install uv via pip instead of curl-based installer script - Add explicit ca-certificates package and update-ca-certificates for other curl/wget operations in the container Jira Issue: N/A
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.
Summary
What changed
uvviapip install uvinstead of curl-based installer script (docker/Dockerfile.sandbox)mvcommands to relocate binaries - pip installsuvanduvxdirectly to/usr/local/bin/ca-certificatespackage and runupdate-ca-certificatesfor other curl/wget operationsWhy
The curl-based uv installer fails in some Docker build environments due to SSL certificate verification issues:
This commonly occurs with Docker Desktop on macOS when corporate proxies or VPNs intercept SSL traffic. Even with
ca-certificatesinstalled and updated, the curl installer can fail. Using pip to install uv sidesteps this issue entirely while achieving the same result.The original approach downloaded uv to
/root/.local/bin/and required manualmvcommands to relocate binaries. With pip, bothuvanduvxare installed directly to/usr/local/bin/as entry points, so no relocation is needed.Test plan
docker build --no-cache -f docker/Dockerfile.sandbox -t ash-sandbox .succeedsuv run ash sandbox buildsucceedsuvxis available at/usr/local/bin/uvx