From 4dc0ff2b6cc1bb5bdb5bf5732e46a276ae28f5a4 Mon Sep 17 00:00:00 2001 From: Jess Frazelle Date: Tue, 9 Mar 2021 09:51:46 -0800 Subject: [PATCH] update terraform Signed-off-by: Jess Frazelle --- terraform/Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/terraform/Dockerfile b/terraform/Dockerfile index eba2a95..a0e0638 100644 --- a/terraform/Dockerfile +++ b/terraform/Dockerfile @@ -13,7 +13,7 @@ RUN apk add --no-cache \ musl-dev \ zip -ENV TERRAFORM_VERSION v0.12.28 +ENV TERRAFORM_VERSION v0.14.7 RUN go get github.com/hashicorp/terraform || true @@ -21,8 +21,9 @@ WORKDIR /go/src/github.com/hashicorp/terraform RUN git checkout "${TERRAFORM_VERSION}" -RUN XC_ARCH="amd64" XC_OS="linux" LD_FLAGS=" -extldflags -static" make fmt bin \ - && mv bin/terraform /usr/bin/terraform +RUN CGO_ENABLED=0 go build -a -tags netgo -ldflags '-w -extldflags "-static"' \ + -o bin/terraform && \ + mv bin/terraform /usr/bin/terraform FROM alpine:latest