Skip to content

fix(sandbox): Use pip to install uv in Docker build#1

Open
bheemreddy-samsara wants to merge 1 commit intodcramer:mainfrom
bheemreddy-samsara:bheemreddy-samsara/fix-sandbox-ssl-build
Open

fix(sandbox): Use pip to install uv in Docker build#1
bheemreddy-samsara wants to merge 1 commit intodcramer:mainfrom
bheemreddy-samsara:bheemreddy-samsara/fix-sandbox-ssl-build

Conversation

@bheemreddy-samsara
Copy link

@bheemreddy-samsara bheemreddy-samsara commented Jan 15, 2026

Summary

  • Fix sandbox Docker build failing due to SSL certificate issues when using curl to download uv installer
  • Use pip to install uv instead, avoiding SSL verification problems in Docker build environments

What changed

  • Install uv via pip install uv instead of curl-based installer script (docker/Dockerfile.sandbox)
  • Removed manual mv commands to relocate binaries - pip installs uv and uvx directly to /usr/local/bin/
  • Add explicit ca-certificates package and run update-ca-certificates for other curl/wget operations

Why

The curl-based uv installer fails in some Docker build environments due to SSL certificate verification issues:

curl: (60) SSL certificate problem: unable to get local issuer certificate

This commonly occurs with Docker Desktop on macOS when corporate proxies or VPNs intercept SSL traffic. Even with ca-certificates installed 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 manual mv commands to relocate binaries. With pip, both uv and uvx are 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 . succeeds
  • uv run ash sandbox build succeeds
  • uvx is available at /usr/local/bin/uvx
  • Sandbox image builds and ash-sb CLI works correctly

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

1 participant