diff --git a/gitea-runner/Dockerfile b/gitea-runner/Dockerfile index 20a0de3..f0d0e6f 100644 --- a/gitea-runner/Dockerfile +++ b/gitea-runner/Dockerfile @@ -1,12 +1,19 @@ from ubuntu:latest +# Disable interactive mode +ARG DEBIAN_FRONTEND=noninteractive + # Update and install packages RUN apt update && apt upgrade -y RUN apt install -y git wget curl -RUN rm -rf /var/lib/apt/lists/* -RUN apt clean RUN echo "Installed and updated packages" # Install Docker -RUN curl -sSL https://get.docker.com/ | CHANNEL=stable bash -RUN echo "Installed Docker" \ No newline at end of file +RUN wget -q -O /tmp/docker.tgz https://download.docker.com/linux/static/stable/x86_64/docker-20.10.23.tgz \ + && tar --extract --file /tmp/docker.tgz --directory /usr/bin --strip-components 1 --no-same-owner docker/docker \ + && rm -rf /tmp/* +RUN echo "Installed Docker" + +# Clean up apt +RUN rm -rf /var/lib/apt/lists/* +RUN apt clean \ No newline at end of file