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 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