From caa53623973d36d0c549b3fffdde133701f27395 Mon Sep 17 00:00:00 2001 From: phil Date: Tue, 24 Jun 2025 12:43:29 +0200 Subject: [PATCH] b --- Containerfile | 13 +++++++------ pyproject.toml | 6 ++---- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/Containerfile b/Containerfile index 373e514..f710619 100644 --- a/Containerfile +++ b/Containerfile @@ -1,15 +1,16 @@ -# Build: podman build -t code.philo.ydns.eu/k-net/knoc -f Containerfile +# Build: podman build -t code.philo.ydns.eu/philorg/test-woodpecker -f Containerfile -FROM docker.io/python:3.13-slim +#FROM docker.io/python:3.13-slim +FROM docker.io/python:alpine +#FROM ghcr.io/astral-sh/uv:python3.13-alpine #RUN apk add --no-cache git -COPY --from=ghcr.io/astral-sh/uv:latest /uv /usr/local/bin/ -COPY --from=docker.io/python:3.13 /usr/bin/git /usr/local/bin/git +#COPY --from=ghcr.io/astral-sh/uv:python3.13-alpine /usr/local/bin/uv /usr/local/bin/ COPY . /app # Sync the project into a new environment, using the frozen lockfile WORKDIR /app -RUN uv pip install --system . +RUN --mount=from=ghcr.io/astral-sh/uv:alpine,source=/usr/local/bin/uv,target=/bin/uv uv pip install --system . -ENTRYPOINT ["knoc"] +ENTRYPOINT ["foo"] diff --git a/pyproject.toml b/pyproject.toml index e3d35d6..bf946b4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -8,6 +8,7 @@ dependencies = [] [project.scripts] foo = "test_woodpecker_ci.main:main" + [build-system] requires = ["hatchling"] build-backend = "hatchling.build" @@ -16,7 +17,4 @@ build-backend = "hatchling.build" packages = ["src/test_woodpecker_ci"] [dependency-groups] -dev = [ - "httpx>=0.28.1", - "pytest>=8.4.1", -] +dev = ["httpx>=0.28.1", "pytest>=8.4.1"]