Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker: put uv and uvx in a single layer #7697

Merged
merged 1 commit into from
Sep 26, 2024

Conversation

akx
Copy link
Contributor

@akx akx commented Sep 26, 2024

Summary

Copy both uv and uvx into place in a single Dockerfile command. COPY supports multiple sources when the destination is a directory.

As it is, e.g. ghcr.io/astral-sh/uv:0.4.16-python3.12-bookworm-slim has this (screenshot from Dive):

Screenshot 2024-09-26 at 10 11 24

and less layers is a Good Thing.

Test Plan

I hope the CI pipeline will take care of testing – I couldn't get the Docker build to finish on my machine right away (SIGKILL, so out of memory, I guess 😄)

@zanieb zanieb added the releases Related to building and distributing release artifacts of uv label Sep 26, 2024
@zanieb zanieb merged commit 23b010c into astral-sh:main Sep 26, 2024
66 checks passed
@akx akx deleted the docker-uv-uvx-layers branch September 26, 2024 15:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
releases Related to building and distributing release artifacts of uv
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants