diff --git a/Dockerfile b/Dockerfile index 7534884..6c2b36d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,14 +13,19 @@ RUN apt-get update -y && apt-get upgrade -y && useradd -m docker RUN apt-get install -y gosu apt-utils curl jq build-essential libssl-dev libffi-dev python3 python3-venv python3-dev apt-transport-https ca-certificates gnupg lsb-release # install official version of git -RUN apt-get install -y software-properties-common && add-apt-repository -y ppa:git-core/ppa -RUN apt-get update -y && apt-get install -y git +RUN apt-get install -y software-properties-common && add-apt-repository -y ppa:git-core/ppa \ + && apt-get update -y && apt-get install -y git + +# install gh tool +RUN curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | gpg --dearmor -o /usr/share/keyrings/githubcli-archive-keyring.gpg \ + && echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | tee /etc/apt/sources.list.d/github-cli.list > /dev/null \ + && apt-get update -y && apt-get install -y gh # install docker # https://docs.docker.com/engine/install/ubuntu/ -RUN curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg -RUN echo "deb [arch=armhf signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null -RUN apt-get update -y && apt-get install -y docker-ce docker-ce-cli containerd.io +RUN curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg \ + && echo "deb [arch=armhf signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null \ + && apt-get update -y && apt-get install -y docker-ce docker-ce-cli containerd.io # cd into the user directory, download and unzip the github actions runner RUN cd /home/docker && mkdir actions-runner && cd actions-runner \