fix terraform

Signed-off-by: Jess Frazelle <jess@oxide.computer>
This commit is contained in:
Jess Frazelle 2021-03-12 11:21:10 -08:00
parent 4dc0ff2b6c
commit 39309ee3d7
No known key found for this signature in database
GPG key ID: E34EC3D4E4953C4A

View file

@ -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