Skip to content

This repository aims to create a useful, and minimal docker container that exposes the terraform binary to a host machine.

License

Notifications You must be signed in to change notification settings

ChaosCypher/dockerfile-minimal-terraform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

This repository aims to create a useful, and minimal docker container that exposes the terraform binary to a host machine.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •