diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index bcbe4de..0803168 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -15,6 +15,17 @@ jobs: - uses: actions/checkout@v6 with: persist-credentials: false + + - uses: docker/setup-docker-action@v5 + with: + daemon-config: | + { + "debug": true, + "features": { + "containerd-snapshotter": true + } + } + - uses: docker/setup-buildx-action@v4 - uses: docker/login-action@v4 @@ -30,8 +41,12 @@ jobs: - uses: docker/build-push-action@v7 with: + build-args: POETRY_VERSION=2.3.2 context: . push: false + load: true tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} - platforms: linux/amd64, linux/arm64 + platforms: linux/amd64,linux/arm64 + + - run: docker run ${DOCKER_METADATA_OUTPUT_TAGS} -V \ No newline at end of file diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index a66af98..45d4aa3 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -32,6 +32,7 @@ jobs: - uses: docker/build-push-action@v7 with: + build-args: POETRY_VERSION=2.3.2 context: . push: true tags: ${{ steps.meta.outputs.tags }} diff --git a/Dockerfile b/Dockerfile index d328ae9..a8f3e2e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,18 @@ FROM python:3.14-slim -LABEL org.opencontainers.image.description "Docker (base) image with Python 3.x with poetry" - -ARG POETRY_VERSION=1.8.3 +ARG POETRY_VERSION=2.3.2 ARG POETRY_HOME=/opt/poetry +LABEL org.opencontainers.image.title="python-poetry" \ + org.opencontainers.image.description="Docker (base) image with Python 3.x with poetry" \ + org.opencontainers.image.vendor="Planetary Quantum GmbH" \ + org.opencontainers.image.licenses="BSD-2-Clause" \ + org.opencontainers.image.source="https://github.com/hostwithquantum/python-poetry" \ + org.opencontainers.image.documentation="https://github.com/hostwithquantum/python-poetry#readme" \ + software.python.version="3.14" \ + software.poetry.version=${POETRY_VERSION} + + # making this explicit USER root