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

17 lines
468 B
Text
Raw Permalink Normal View History

2023-06-21 12:41:43 +00:00
FROM alpine:3.18.0
ARG TFLINT_VERSION TFLINT_OS TFLINT_ARCH
RUN apk add --no-curl --purge wget
RUN wget -O /tmp/tflint.zip https://github.com/terraform-linters/tflint/releases/download/v${TFLINT_VERSION}/tflint_${TFLINT_OS}_${TFLINT_ARCH}.zip \
&& unzip /tmp/tflint.zip \
&& mv tflint /usr/local/bin \
&& chmod +x /usr/local/bin/tflint \
&& rm /tmp/tflint* \
&& mkdir /workdir \
&& chmod 777 /workdir
ENTRYPOINT ["tflint"]
WORKDIR /workdir