Skip to content

Commit

Permalink
fixup docker ci
Browse files Browse the repository at this point in the history
  • Loading branch information
chadsr committed Sep 23, 2024
1 parent 7766139 commit e279164
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: Docker Image CI
on:
release:
types: [published]
permissions:
packages: write
jobs:
build-and-push:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -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
12 changes: 5 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit e279164

Please sign in to comment.