Skip to content

Latest commit

 

History

History
34 lines (24 loc) · 1.14 KB

README.md

File metadata and controls

34 lines (24 loc) · 1.14 KB

dockerfile-minimal-terraform docker publish

This repository aims to create a secure, customizable, minimal docker container that exposes the terraform binary to a host machine. It begins as an alpine base(stage 1), where gpg and sha validations occur. Following stage 1 the terraform binary is copied from stage 1 into a scratch base(stage 2).

Only 65.3MB!!

using the container

docker run --rm -it -v $PWD:$PWD -v /tmp:/tmp -w $PWD chaoscypher/minimal-terraform <COMMAND>

building the image

This snippet builds the container with default ARGS set in the Dockerfile:

docker build -t terraform:main .

The defaults can be overwritten:

docker build --build-arg TERRAFORM_VERSION=1.4.6 -t terraform:main .

Default Versions

Docker Argument Default
ALPINE_VERSION 3.18.3
CA_CERT_VERSION 20230506-r0
GNUPG_VERSION 2.4.3-r0
PLATFORM linux_amd64
TERRAFORM_VERSION 1.5.5