You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
783 B
23 lines
783 B
FROM alpine:3.6 as alpine
|
|
RUN apk add -U --no-cache ca-certificates git wget
|
|
|
|
ENV TERRAFORM_VERSION 0.10.3
|
|
RUN wget -q https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_linux_arm.zip -O terraform.zip && \
|
|
unzip terraform.zip -d /bin && \
|
|
rm -f terraform.zip
|
|
|
|
#TODO: need to add rm to scratch
|
|
#FROM scratch
|
|
|
|
ENV GODEBUG=netdns=go
|
|
|
|
#COPY --from=alpine /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
|
|
#COPY --from=alpine /bin/terraform /bin/terraform
|
|
|
|
LABEL org.label-schema.version=latest
|
|
LABEL org.label-schema.vcs-url="https://github.com/jmccann/drone-terraform.git"
|
|
LABEL org.label-schema.name="Drone Terraform"
|
|
LABEL org.label-schema.vendor="jmccann"
|
|
|
|
ADD release/linux/arm/drone-terraform /bin/
|
|
ENTRYPOINT ["/bin/drone-terraform"]
|