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