Skip to content

Commit

Permalink
update terraform
Browse files Browse the repository at this point in the history
Signed-off-by: Jess Frazelle <[email protected]>
  • Loading branch information
jessfraz committed Mar 9, 2021
1 parent e419219 commit 4dc0ff2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions terraform/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,17 @@ 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

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

Expand Down

0 comments on commit 4dc0ff2

Please sign in to comment.