# The builder and linter for this repository
# Notice how we depend upon nothing twitch specific: just pulling the core golang docker image
FROM alpine

RUN apk update && apk add unzip bash ca-certificates && rm -rf /var/cache/apk/*
ARG VERSION=0.12.3
RUN wget https://releases.hashicorp.com/terraform/0.12.3/terraform_${VERSION}_linux_amd64.zip && \
	unzip terraform_${VERSION}_linux_amd64.zip && \
	mv terraform /bin/ && \
	rm terraform_${VERSION}_linux_amd64.zip
WORKDIR /app
ADD . .
RUN /app/check.sh
