From 15f452b7c4816eb69696b6c0e2828236b01a2355 Mon Sep 17 00:00:00 2001 From: Jhonas Wernery Date: Thu, 31 Aug 2023 17:12:26 +0200 Subject: [PATCH] Fix installation of dependencies Avoid action workflow errors like: ... #8 [3/5] RUN apk update #8 0.293 fetch https://alpine.global.ssl.fastly.net/alpine/v3.16/main/x86_64/APKINDEX.tar.gz #8 0.501 fetch https://alpine.global.ssl.fastly.net/alpine/v3.16/community/x86_64/APKINDEX.tar.gz #8 0.767 fetch http://nl.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz #8 130.8 ERROR: http://nl.alpinelinux.org/alpine/edge/community: operation timed out #8 130.8 WARNING: Ignoring http://nl.alpinelinux.org/alpine/edge/community: No such file or directory #8 130.9 v3.16.7-53-g390803ea694 [https://alpine.global.ssl.fastly.net/alpine/v3.16/main] #8 130.9 v3.16.7-53-g390803ea694 [https://alpine.global.ssl.fastly.net/alpine/v3.16/community] #8 130.9 1 errors; 17042 distinct packages available #8 ERROR: process "/bin/sh -c apk update" did not complete successfully: exit code: 1 --- Dockerfile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index ef48322..0a38986 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,6 @@ # Container image that runs your code FROM sensu/sensu:latest -RUN echo 'http://nl.alpinelinux.org/alpine/edge/community' >> /etc/apk/repositories -RUN apk update -RUN apk add jq yq curl +RUN apk add --update-cache jq yq curl # Copies your code file from your action repository to the filesystem path `/` of the container COPY sensuflow.sh /sensuflow.sh