orange-openSource--aws-terr.../automation/TerraformDocs/Dockerfile

17 lines
618 B
Text
Raw Normal View History

2023-06-21 12:41:43 +00:00
FROM alpine:3.18.0
ARG TERRAFORM_DOCS_VERSION TERRAFORM_DOCS_OS TERRAFORM_DOCS_ARCH
RUN apk add --no-cache --purge wget
RUN wget -O /tmp/terraform-docs.tar.gz https://github.com/terraform-docs/terraform-docs/releases/download/v${TERRAFORM_DOCS_VERSION}/terraform-docs-v${TERRAFORM_DOCS_VERSION}-${TERRAFORM_DOCS_OS}-${TERRAFORM_DOCS_ARCH}.tar.gz \
&& tar -xvzf /tmp/terraform-docs.tar.gz \
&& mv terraform-docs /usr/local/bin \
&& chmod +x /usr/local/bin/terraform-docs \
&& rm /tmp/terraform-docs* \
&& mkdir /workdir \
&& chmod 777 /workdir
ENTRYPOINT ["terraform-docs"]
WORKDIR /workdir