From bf5a91c5a2d2ee3782de12334f26aeaccd960aa6 Mon Sep 17 00:00:00 2001 From: minoplhy Date: Thu, 15 Jun 2023 09:36:27 +0700 Subject: [PATCH] Dockerfile : trying to mitigate the issue --- Dockerfile | 7 ++++--- filters.sh | 1 - 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index a4d73a3..ae27f70 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,11 @@ # Container image that runs your code -FROM debian +FROM python # Copies your code file from your action repository to the filesystem path `/` of the container COPY filters.sh /filters.sh -RUN apt-get update && apt-get install -y python3 git python3-pip wget curl -RUN wget -O gh https://github.com/cli/cli/releases/download/v2.14.7/gh_2.14.7_linux_amd64.deb +RUN pip install -r /filters-maker/requirements.txt +RUN apt-get update && apt-get install -y git wget curl +RUN wget -O gh https://github.com/cli/cli/releases/download/v2.30.0/gh_2.30.0_linux_amd64.deb RUN dpkg -i gh # Code file to execute when the docker container starts up (`entrypoint.sh`) RUN chmod 777 /filters.sh diff --git a/filters.sh b/filters.sh index 70b439d..9ce2fe2 100644 --- a/filters.sh +++ b/filters.sh @@ -3,7 +3,6 @@ git clone https://github.com/minoplhy/filters-maker /filters-maker git clone https://x-access-token:$API_TOKEN_GITHUB@github.com/$INPUT_DESTINATION_UNAME/$INPUT_DESTINATION_REPO.git /repros mkdir /reprwiki mkdir /reprwiki/Private-build/ -pip3 install -r /filters-maker/requirements.txt cd /reprwiki python3 /repros/$INPUT_ACTION_FILE cd /repros