Skip to content

Commit b695d75

Browse files
committed
build(docker): Use uv+build to build wheel
1 parent 20ab1f9 commit b695d75

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

Dockerfile

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,10 @@ ARG BASE_IMAGE=ubuntu:jammy-20240125
2828
#
2929
# Build wheel
3030
#
31-
FROM python:slim AS src
32-
RUN pip install build
33-
RUN apt-get update && \
34-
apt-get install -y --no-install-recommends git
31+
FROM ghcr.io/astral-sh/uv:python3.13-alpine AS src
32+
RUN apk add --no-cache git
3533
COPY . /src
36-
RUN python -m build /src
34+
RUN uvx --from=build pyproject-build --installer=uv /src
3735

3836
#
3937
# Download stages

0 commit comments

Comments
 (0)