diff --git a/Dockerfile b/Dockerfile index 105ec93..5299d40 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,43 +1,21 @@ -ARG ALPINE_VERSION=3.16 -FROM python:3.10.5-alpine${ALPINE_VERSION} as builder +ARG ALPINE_VERSION=3.18 -ARG AWS_CLI_VERSION=2.7.20 -RUN apk add --no-cache git unzip groff build-base libffi-dev cmake -RUN git clone --single-branch --depth 1 -b ${AWS_CLI_VERSION} https://github.com/aws/aws-cli.git - -WORKDIR aws-cli -RUN sed -i'' 's/PyInstaller.*/PyInstaller==5.2/g' requirements-build.txt -RUN python -m venv venv -RUN . venv/bin/activate -RUN scripts/installers/make-exe -RUN unzip -q dist/awscli-exe.zip -RUN aws/install --bin-dir /aws-cli-bin -RUN /aws-cli-bin/aws --version - -# reduce image size: remove autocomplete and examples -RUN rm -rf /usr/local/aws-cli/v2/current/dist/aws_completer /usr/local/aws-cli/v2/current/dist/awscli/data/ac.index /usr/local/aws-cli/v2/current/dist/awscli/examples -RUN find /usr/local/aws-cli/v2/current/dist/awscli/botocore/data -name examples-1.json -delete - -# build the final image -FROM alpine:${ALPINE_VERSION} - - -FROM ghcr.io/runatlantis/atlantis:v0.22.3 +FROM ghcr.io/runatlantis/atlantis:v0.24.2 LABEL org.opencontainers.image.source=https://github.com/clicampo/docker-atlantis-terragrunt -ENV TERRAGRUNT_VERSION=v0.43.2 \ +ENV TERRAGRUNT_VERSION=v0.45.18 \ VAULT_VERSION=1.10.1 \ TERRAGRUNT_ATLANTIS_CONFIG_VERSION=1.16.0 \ - TERRAFORM_VERSION=1.3.8 \ - DEFAULT_TERRAFORM_VERSION=1.3.8 + TERRAFORM_VERSION=1.4.6 \ + DEFAULT_TERRAFORM_VERSION=1.4.6 \ + AWS_CLI_VERSION=2.11.23-r0 # AWS CLI v2 -COPY --from=builder /usr/local/aws-cli/ /usr/local/aws-cli/ -COPY --from=builder /aws-cli-bin/ /usr/local/bin/ - +RUN apk add --no-cache aws-cli==${AWS_CLI_VERSION} SHELL ["/bin/bash", "-o", "pipefail", "-c"] + RUN curl -Ls https://github.com/gruntwork-io/terragrunt/releases/download/${TERRAGRUNT_VERSION}/terragrunt_linux_amd64 --output /usr/local/bin/terragrunt \ && chmod +x /usr/local/bin/terragrunt \ && curl -LOs https://releases.hashicorp.com/vault/${VAULT_VERSION}/vault_${VAULT_VERSION}_linux_amd64.zip \