From 278520d373d8f04d2b3cf700e53b555772ea494c Mon Sep 17 00:00:00 2001 From: Saibotk Date: Thu, 25 Jan 2024 23:33:55 +0000 Subject: [PATCH] Migrate to alpine variant This has much newer ansible version --- Dockerfile | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/Dockerfile b/Dockerfile index bb7d1ec..dc0d2fe 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,16 +1,7 @@ -FROM docker.io/gitlab/gitlab-runner:v16.8.0 +FROM docker.io/gitlab/gitlab-runner:alpine-v16.8.0 RUN true \ - && apt-get update \ - && apt-get upgrade -y \ - && apt-get clean && apt-get purge && rm -r /var/lib/apt/lists/* \ - && true - -RUN true \ - && apt-get update \ - && apt-get install -y gpg software-properties-common \ - && add-apt-repository ppa:ansible/ansible \ - && apt-get update \ - && apt-get install -y ansible python3-requests python3-influxdb python3-netaddr \ - && apt-get clean && apt-get purge && rm -r /var/lib/apt/lists/* \ + && apk update \ + && apk upgrade \ + && apk add ansible py3-influxdb py3-netaddr \ && true