-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
👷 fix(docker): just build for amd, arm64
- Loading branch information
1 parent
f499f42
commit 439bdf6
Showing
2 changed files
with
2 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
|
@@ -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"] |