From 048aa10d6536daec7125882b83a28bc8af136575 Mon Sep 17 00:00:00 2001 From: Dylan Page Date: Tue, 4 Apr 2023 18:15:26 -0500 Subject: [PATCH] ci: fix pipefail in golang builder image (#3294) * ci: fix pipefail in golang builder image * fix: curl version --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 074ef21514..880741632b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,6 +19,8 @@ WORKDIR /app # This is needed to download transitive dependencies instead of compiling them # https://github.com/montanaflynn/golang-docker-cache # https://github.com/golang/go/issues/27719 +RUN apk add --no-cache \ + bash~=5.2 COPY go.mod go.sum ./ SHELL ["/bin/bash", "-o", "pipefail", "-c"] RUN go mod graph | awk '{if ($1 !~ "@") print $2}' | xargs go get @@ -163,7 +165,7 @@ RUN apk add --no-cache --repository=http://dl-cdn.alpinelinux.org/alpine/edge/ma git~=2.40 && \ apk add --no-cache \ ca-certificates~=20220614 \ - curl~=7.87 \ + curl~=7.88 \ unzip~=6.0 \ bash~=5.2 \ openssh~=9.1_p1 \