Skip to content

Commit

Permalink
ci: fix pipefail in golang builder image (runatlantis#3294)
Browse files Browse the repository at this point in the history
* ci: fix pipefail in golang builder image
* fix: curl version
  • Loading branch information
GenPage authored and ijames-gc committed Feb 13, 2024
1 parent b2be7cd commit 048aa10
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 \
Expand Down

0 comments on commit 048aa10

Please sign in to comment.