Skip to content

Commit

Permalink
fix 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 12, 2021
1 parent 4dc0ff2 commit 39309ee
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions terraform/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 39309ee

Please sign in to comment.