From 560458fdcb0f60fa405f5ec46869c417b6102700 Mon Sep 17 00:00:00 2001 From: Chris Markiewicz Date: Fri, 11 Oct 2024 21:10:09 -0400 Subject: [PATCH 1/2] ci: Fetch tags and 200 commits to support describe --- .github/workflows/docker.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index e83bd6b9..5a4b32ff 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -26,6 +26,9 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v4 + with: + fetch-depth: 200 + fetch-tags: true - name: Setup Docker buildx uses: docker/setup-buildx-action@v3 From 98ad45b30a2b024bd404775e5e38db5b00d67e5b Mon Sep 17 00:00:00 2001 From: Chris Markiewicz Date: Fri, 11 Oct 2024 21:32:35 -0400 Subject: [PATCH 2/2] chore(docker): Slim down wheel build from 15s to 7s [skipcircle] --- Dockerfile | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index ad24aded..10828c96 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 uvx --from build pyproject-build --installer uv -w /src # # Download stages