FROM ghcr.io/opentofu/opentofu:1.9-minimal AS tofu FROM ubuntu:24.04 # Copy the tofu binary COPY --from=tofu /usr/local/bin/tofu /usr/local/bin/tofu # Atualizar pacotes e instalar dependências básicas RUN apt-get update && apt-get install -y \ curl \ git \ unzip \ jq \ gnupg \ ca-certificates \ && rm -rf /var/lib/apt/lists/* # Instalar Node.js 18 via NodeSource RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \ apt-get install -y nodejs # Verificar versões (opcional para debug) RUN node -v && npm -v RUN npm install -g @bitwarden/cli WORKDIR /workspace