mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-23 11:31:49 +01:00
update terraform
Signed-off-by: Jess Frazelle <jess@oxide.computer>
This commit is contained in:
parent
e419219cde
commit
4dc0ff2b6c
|
@ -13,7 +13,7 @@ RUN apk add --no-cache \
|
||||||
musl-dev \
|
musl-dev \
|
||||||
zip
|
zip
|
||||||
|
|
||||||
ENV TERRAFORM_VERSION v0.12.28
|
ENV TERRAFORM_VERSION v0.14.7
|
||||||
|
|
||||||
RUN go get github.com/hashicorp/terraform || true
|
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 git checkout "${TERRAFORM_VERSION}"
|
||||||
|
|
||||||
RUN XC_ARCH="amd64" XC_OS="linux" LD_FLAGS=" -extldflags -static" make fmt bin \
|
RUN CGO_ENABLED=0 go build -a -tags netgo -ldflags '-w -extldflags "-static"' \
|
||||||
&& mv bin/terraform /usr/bin/terraform
|
-o bin/terraform && \
|
||||||
|
mv bin/terraform /usr/bin/terraform
|
||||||
|
|
||||||
FROM alpine:latest
|
FROM alpine:latest
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user