orange-openSource--aws-terr.../automation/TerraformDocs/Dockerfile
Fabien Gaubert 5cf2ac0217 Init
2023-06-21 14:41:43 +02:00

16 lines
618 B
Docker

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