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

16 lines
468 B
Docker

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