Skip to content

Conversation

@david-banon-tecnativa
Copy link

@david-banon-tecnativa david-banon-tecnativa commented Jun 4, 2025

Replaces pip with UV in pip compatibility mode, in my tests speeds build times between 15% and 40% depending on the project and how many python packages it installs.

Should not cause any difference in the final image in terms of packages, but some testing is still needed.

Also replaces poetry as a package manager for the project also with uv.

@Tecnativa @pedrobaeza @josep-tecnativa

11.0.Dockerfile Outdated

# Debian stretch was moved to archive (and stretch-updates does not exist in archive)
RUN sed -i 's,http://deb.debian.org,http://archive.debian.org,g;s,http://security.debian.org,http://archive.debian.org,g;s,\(.*stretch-updates\),#\1,' /etc/apt/sources.list
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
Copy link
Contributor

@ap-wtioit ap-wtioit Jun 4, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As this is the first time using the COPY --from, we should make an announcement that certain docker versions will be unsupported. If there is already one can you add a link to it.

Edit: seems the discussion is locked: #67 but it would belong there i guess.

Copy link
Author

@david-banon-tecnativa david-banon-tecnativa Jun 4, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

An announcement will be made once we ensure this will be merged at some point and isn't just an experiment.

However, as this is run on CI, anyone should be able to just pull the doodba image i think, even if they are running a docker version prior to 17.05 (I think that is when COPY --from was implemented)

@ap-wtioit

This comment was marked as resolved.

@david-banon-tecnativa david-banon-tecnativa force-pushed the dck-imp-use_uv branch 5 times, most recently from f0f214f to 519e6cb Compare June 4, 2025 14:19
@arch-fan
Copy link

arch-fan commented Jun 6, 2025

go go go!

@pedrobaeza
Copy link
Member

Please check the failing CI.

@david-banon-tecnativa david-banon-tecnativa force-pushed the dck-imp-use_uv branch 5 times, most recently from 96bbd04 to 902d02b Compare June 30, 2025 14:01
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.

5 participants