From b5ee7c84de61efbdaa8a0870ded7d2f4dde3e3a8 Mon Sep 17 00:00:00 2001 From: DevContainer User Date: Sun, 1 Mar 2026 15:25:52 +0000 Subject: [PATCH] feat: add OpenTofu CLI to container image Co-Authored-By: Claude Opus 4.6 --- Dockerfile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Dockerfile b/Dockerfile index 7d995a3..1782a90 100644 --- a/Dockerfile +++ b/Dockerfile @@ -86,6 +86,13 @@ RUN curl -fsSL "https://get.helm.sh/helm-v${HELM_VERSION}-linux-amd64.tar.gz" | tar -xz --strip-components=1 -C /usr/local/bin linux-amd64/helm && \ chmod +x /usr/local/bin/helm +# Install OpenTofu (open-source Terraform alternative) +ARG OPENTOFU_VERSION=1.11.5 +RUN curl -fsSL "https://github.com/opentofu/opentofu/releases/download/v${OPENTOFU_VERSION}/tofu_${OPENTOFU_VERSION}_linux_amd64.zip" -o /tmp/tofu.zip && \ + unzip -o /tmp/tofu.zip -d /usr/local/bin tofu && \ + chmod +x /usr/local/bin/tofu && \ + rm /tmp/tofu.zip + # Install GitHub CLI (gh) via official APT repo RUN curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg && \ chmod go+r /usr/share/keyrings/githubcli-archive-keyring.gpg && \