Skip to content

Commit

Permalink
chore(docker): Slim down wheel build from 15s to 7s [skipcircle]
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies committed Oct 12, 2024
1 parent 560458f commit 0c2f7fd
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,10 @@ ARG BASE_IMAGE=ubuntu:jammy-20240125
#
# Build wheel
#
FROM python:slim AS src
RUN pip install build
RUN apt-get update && \
apt-get install -y --no-install-recommends git
FROM ghcr.io/astral-sh/uv:python3.12-alpine AS src
RUN apk add git
COPY . /src
RUN python -m build /src
RUN python -m build --installer uv -w /src

#
# Download stages
Expand Down

0 comments on commit 0c2f7fd

Please sign in to comment.