FROM alpine:3.21 AS tofu

RUN apk add --no-cache opentofu

CMD ["/bin/sh"]

FROM tofu AS fmt

RUN apk add --no-cache \
    pre-commit \
    kubeconform --repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing/ \
    tflint

CMD ["/bin/sh"]
