From 39309ee3d7700944979e664d8528d4aec9703320 Mon Sep 17 00:00:00 2001 From: Jess Frazelle Date: Fri, 12 Mar 2021 11:21:10 -0800 Subject: [PATCH] fix terraform Signed-off-by: Jess Frazelle --- terraform/Dockerfile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/terraform/Dockerfile b/terraform/Dockerfile index a0e0638..a5af8f0 100644 --- a/terraform/Dockerfile +++ b/terraform/Dockerfile @@ -15,12 +15,10 @@ RUN apk add --no-cache \ ENV TERRAFORM_VERSION v0.14.7 -RUN go get github.com/hashicorp/terraform || true +RUN git clone --depth 1 --branch ${TERRAFORM_VERSION} https://github.com/hashicorp/terraform.git /go/src/github.com/hashicorp/terraform WORKDIR /go/src/github.com/hashicorp/terraform -RUN git checkout "${TERRAFORM_VERSION}" - RUN CGO_ENABLED=0 go build -a -tags netgo -ldflags '-w -extldflags "-static"' \ -o bin/terraform && \ mv bin/terraform /usr/bin/terraform