Download the Dockerfile
wget https://gist.githubusercontent.com/nitrocode/62505b0623cd9bf27e4b39a3f98412f5/raw/Dockerfile
Build the container
ATLANTIS_VERSION=0.19.8
docker build -t atlantis-awscli2:${ATLANTIS_VERSION} --build-arg ATLANTIS_VERSION=${ATLANTIS_VERSION} .
Verify CLI versions match
$ docker run --rm -it --entrypoint aws atlantis-awscli2:${ATLANTIS_VERSION} --version
aws-cli/2.7.32 Python/3.10.7 Linux/5.10.104-linuxkit exe/aarch64.alpine.3 prompt/off
$ docker run --rm -it atlantis-awscli2:${ATLANTIS_VERSION} version
atlantis 0.19.8