diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 27159f5..2b413e6 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -48,9 +48,5 @@ jobs: cache-from: type=gha cache-to: type=gha,mode=max platforms: | - linux/386 linux/amd64 - linux/arm/v6 - linux/arm/v7 linux/arm64/v8 - linux/s390x diff --git a/Dockerfile b/Dockerfile index db2871b..76d37bb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM python:3.12.3-alpine +FROM python:3.12.4-alpine LABEL authors="KevinNitro " LABEL name="VNULIB Downloader" @@ -16,16 +16,7 @@ COPY main.py /app/ COPY src/ /app/src/ RUN apk update -# https://gist.github.com/deliro/509b663093ff0f49c1b71e1876597ccb -RUN apk add --no-cache --virtual .build-deps \ - g++ \ - python3-dev \ - libxml2 \ - libxml2-dev -RUN apk add libxslt-dev -RUN pip install --no-cache-dir -r requirements.txt -RUN apk del .build-deps - RUN apk add --no-cache chromium chromium-chromedriver +RUN pip install --no-cache-dir -r requirements.txt CMD ["python", "main.py"]