From 7c772a65b1dd1540d2bb64ee6f0b2860ccaf32c0 Mon Sep 17 00:00:00 2001 From: rht Date: Mon, 31 Jan 2022 20:55:58 -0500 Subject: [PATCH] Upgrade Dockerfile FROM to latest Python on Alpine. --- Dockerfile | 6 +++--- entrypoint.sh | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index d99be24e9a29d8..2826fe73fd68d0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ -FROM hackerkid/zulip-archive +FROM python:3-alpine -RUN mkdir -p /zulip-archive +RUN mkdir -p /zulip-archive && apk update && apk add git curl COPY . /zulip-archive-action/ -ENTRYPOINT ["/zulip-archive-action/entrypoint.sh"] +ENTRYPOINT ["sh", "/zulip-archive-action/entrypoint.sh"] diff --git a/entrypoint.sh b/entrypoint.sh index 4bd6d1217a7453..61901aec4a176b 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -30,6 +30,8 @@ virtualenv -p python3 . source bin/activate pip3 install zulip==0.6.3 pip3 install pyyaml==5.2 +# crudini is not available as an Alpine pkg, so we install via pip. +pip3 install crudini # GitHub pages API is in Preview mode. This might break in future. auth_header="Authorization: Bearer ${github_personal_access_token}"