From 4d18ae3e8e22321b7307280cd843c675c58f48c4 Mon Sep 17 00:00:00 2001 From: Fascinated Date: Mon, 27 Mar 2023 22:04:51 +0100 Subject: [PATCH] fixes --- gitea-runner/Dockerfile | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/gitea-runner/Dockerfile b/gitea-runner/Dockerfile index a80010c..4ee33e4 100644 --- a/gitea-runner/Dockerfile +++ b/gitea-runner/Dockerfile @@ -1,14 +1,11 @@ from ubuntu:latest # Update and install packages -RUN apt-get update && apt-get install -y \ - git \ - wget \ - && rm -rf /var/lib/apt/lists/* -RUN echo "Installed packages" +RUN apt install -y git wget +RUN rm -rf /var/lib/apt/lists/* +RUN apt clean +RUN echo "Installed and updated packages" # Install Docker -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 curl -sSL https://get.docker.com/ | CHANNEL=stable bash RUN echo "Installed Docker" \ No newline at end of file