Skip to content

Commit 98ad45b

Browse files
committed
chore(docker): Slim down wheel build from 15s to 7s [skipcircle]
1 parent 560458f commit 98ad45b

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.12-alpine AS src
32+
RUN apk add git
3533
COPY . /src
36-
RUN python -m build /src
34+
RUN uvx --from build pyproject-build --installer uv -w /src
3735

3836
#
3937
# Download stages

0 commit comments

Comments
 (0)