Skip to content

Instantly share code, notes, and snippets.

View dannystaple's full-sized avatar

Danny Staple dannystaple

View GitHub Profile
# Test this with
# export VERSION=17 && \
# docker build --build-arg UV_VERSION="0.7.${VERSION}" . -f uv-test.Dockerfile -t uv-test:${VERSION} && \
# docker run --rm -it --read-only --tmpfs /tmp:rw uv-test:${VERSION}
ARG UV_VERSION=0.7.17
FROM ghcr.io/astral-sh/uv:$UV_VERSION AS uv
FROM python:3.13-slim
COPY --from=uv /uv /uvx /bin/