Files
packer.templates/alpine/docker-alpine.pkr.hcl
T
2024-11-04 13:44:09 +08:00

24 lines
354 B
HCL

packer {
required_plugins {
docker = {
version = ">= 1.0.8"
source = "github.com/hashicorp/docker"
}
}
}
source "docker" "ubuntu" {
image = "alpine:latest"
commit = true
}
build {
name = "learn-packer"
sources = [
"source.docker.ubuntu"
]
post-processor "docker-tag" {
repository = "packer/alpine"
}
}