diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 5a567eb..8cc1378 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -2,6 +2,8 @@ name: Docker Image CI on: release: types: [published] +permissions: + packages: write jobs: build-and-push: runs-on: ubuntu-latest @@ -39,7 +41,7 @@ jobs: type=gha cache-to: | type=gha,mode=max - platforms: linux/amd64, linux/arm64, windows/amd64 + platforms: linux/amd64, linux/arm64 tags: ${{ steps.meta.outputs.tags }} context: . file: Dockerfile diff --git a/Dockerfile b/Dockerfile index 354ff23..04c55d4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,17 +1,15 @@ -ARG PYTHON_MAJOR_MINOR_VERSION="3.12" -FROM python:${PYTHON_MAJOR_MINOR_VERSION}-alpine +FROM docker.io/python:3.12-alpine -LABEL org.opencontainers.image.title="marktplaats-scraper" \ - org.opencontainers.image.description="Scrape listings from Marktplaats and save to CSV file." \ - org.opencontainers.image.source="https://github.com/chadsr/marktplaats-scraper" - -ARG PYTHON_MAJOR_MINOR_VERSION ARG MP_USER="mp" ARG MP_GROUP="mp" ARG MP_UID="1000" ARG MP_GID="1001" +LABEL org.opencontainers.image.title="marktplaats-scraper" \ + org.opencontainers.image.description="Scrape listings from Marktplaats and save to CSV file." \ + org.opencontainers.image.source="https://github.com/chadsr/marktplaats-scraper" + ENV PYTHONUNBUFFERED=1 # install chromium & deps