committed by
GitHub
1 changed files with 14 additions and 8 deletions
@ -1,15 +1,21 @@ |
|||||
# Docker image for the Drone Terraform plugin |
FROM golang:1.8.0-alpine |
||||
# |
|
||||
# docker build --rm=true -t jmccann/drone-terraform:latest . |
|
||||
|
|
||||
FROM alpine:3.4 |
ENV TERRAFORM_VERSION 0.8.8 |
||||
|
|
||||
RUN echo "http://dl-cdn.alpinelinux.org/alpine/edge/community" | tee -a /etc/apk/repositories && \ |
RUN echo "http://dl-cdn.alpinelinux.org/alpine/edge/community" | tee -a /etc/apk/repositories && \ |
||||
apk -U add \ |
apk -U add \ |
||||
ca-certificates \ |
ca-certificates \ |
||||
git \ |
git \ |
||||
terraform && \ |
wget && \ |
||||
rm -rf /var/cache/apk/* |
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 -d /bin && \ |
||||
|
rm -rf /var/cache/apk/* terraform.zip |
||||
|
|
||||
ADD drone-terraform /bin/ |
ADD . /go/src/github.com/jmccann/drone-terraform |
||||
ENTRYPOINT ["/bin/drone-terraform"] |
|
||||
|
WORKDIR /go/src/github.com/jmccann/drone-terraform |
||||
|
|
||||
|
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go install -a -tags netgo |
||||
|
|
||||
|
ENTRYPOINT ["/go/bin/drone-terraform"] |
||||
|
Loading…
Reference in new issue