From 258732e1d27b0758fced453a3dd7d5ed62ab2e00 Mon Sep 17 00:00:00 2001 From: Florian Bertholin Date: Fri, 24 Feb 2017 16:33:25 +0100 Subject: [PATCH] Upgrade Terraform to 0.8.7 --- Dockerfile | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 95b76ea..7eb84ad 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,14 +2,20 @@ # # docker build --rm=true -t jmccann/drone-terraform:latest . -FROM alpine:3.4 +FROM alpine:3.5 + +ENV TERRAFORM_VERSION 0.8.7 RUN echo "http://dl-cdn.alpinelinux.org/alpine/edge/community" | tee -a /etc/apk/repositories && \ apk -U add \ ca-certificates \ git \ - terraform && \ - rm -rf /var/cache/apk/* + wget && \ + rm -rf /var/cache/apk/* && \ + wget -q https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_linux_amd64.zip -O terraform.zip && \ + unzip terraform.zip && \ + rm terraform.zip && \ + mv terraform /bin ADD drone-terraform /bin/ ENTRYPOINT ["/bin/drone-terraform"]