mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-23 03:21:28 +01:00
fix terraform
Signed-off-by: Jess Frazelle <jess@oxide.computer>
This commit is contained in:
parent
4dc0ff2b6c
commit
39309ee3d7
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user