Sign inSign up

nietarne/alpine-uv

By nietarne

•Updated 7 months ago

Alpine-based image with uv. No Python pre-installed; use uv to manage everything on demand.

Image
0

915

nietarne/alpine-uv repository overview

⁠alpine-uv

A lightweight, minimal base image built on Alpine with uv⁠ pre-installed — the blazing-fast Python package and project manager from Astral⁠.

No Python runtime is bundled. uv handles Python installation, virtual environments, and dependency management entirely on its own.


⁠What's included

ComponentDetails
Base imagealpine
uvLatest stable (installed via official installer)
uvxIncluded alongside uv for tool execution
CA certificatesPre-installed for HTTPS

⁠Usage

⁠Interactive shell
docker run --rm -it nietarne/alpine-uv
⁠Install Python and run a script
docker run --rm -v $(pwd):/project nietarne/alpine-uv \
  uv run --python 3.12 script.py
⁠Install dependencies from a pyproject.toml
docker run --rm -v $(pwd):/project nietarne/alpine-uv \
  uv sync
⁠Run a one-off tool with uvx
docker run --rm nietarne/alpine-uv uvx ruff check .

⁠Working directory

The default WORKDIR is /project. Mount your code here:

docker run --rm -v $(pwd):/project nietarne/alpine-uv uv run main.py

⁠Why uv?

  • 10–100× faster than pip for installs and dependency resolution
  • Single binary — no Python needed to bootstrap
  • Manages Python versions, virtual envs, and packages in one tool
  • Drop-in replacement for pip, pip-tools, virtualenv, and more

⁠License

MIT

Tag summary

Content type

Image

Digest

sha256:c6988df4e…

Size

26.4 MB

Last updated

7 months ago

docker pull nietarne/alpine-uv