diff --git a/Dockerfile b/Dockerfile index 65fdc64..c68e067 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,7 +18,7 @@ RUN TF_HW="amd64" && \ COPY entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh -ENTRYPOINT /entrypoint.sh +COPY .terraform-docs.yml /.terraform-docs.yml +ENTRYPOINT /entrypoint.sh WORKDIR /terraform -COPY .terraform-docs.yml .terraform-docs.yml \ No newline at end of file diff --git a/entrypoint.sh b/entrypoint.sh index 009c744..6ab564b 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -7,4 +7,4 @@ terraform fmt . echo "﹥ Running tflint" tflint echo "﹥ Running terraform-docs" -terraform-docs . \ No newline at end of file +terraform-docs -c /.terraform-docs.yml . \ No newline at end of file