Skip to content

Commit

Permalink
👷 fix(docker): just build for amd, arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinNitroG committed Jun 8, 2024
1 parent f499f42 commit 439bdf6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
13 changes: 2 additions & 11 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.12.3-alpine
FROM python:3.12.4-alpine

LABEL authors="KevinNitro <[email protected]>"
LABEL name="VNULIB Downloader"
Expand All @@ -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"]

0 comments on commit 439bdf6

Please sign in to comment.