diff --git a/Dockerfile b/Dockerfile index 63f0642488..3464e82252 100644 --- a/Dockerfile +++ b/Dockerfile @@ -126,7 +126,8 @@ RUN case ${TARGETPLATFORM} in \ ENV DEFAULT_TERRAFORM_VERSION=1.5.0 # In the official Atlantis image, we only have the latest of each Terraform version. -RUN AVAILABLE_TERRAFORM_VERSIONS="1.1.9 1.2.9 1.3.9 ${DEFAULT_TERRAFORM_VERSION}" && \ +# Each binary is about 80 MB so we limit it to the 4 latest minor releases or fewer +RUN AVAILABLE_TERRAFORM_VERSIONS="1.2.9 1.3.9 1.4.6 ${DEFAULT_TERRAFORM_VERSION}" && \ case "${TARGETPLATFORM}" in \ "linux/amd64") TERRAFORM_ARCH=amd64 ;; \ "linux/arm64") TERRAFORM_ARCH=arm64 ;; \