From 584d473002bb6a20f24a85d7dab64812d94733bd Mon Sep 17 00:00:00 2001 From: KF Date: Thu, 1 Feb 2024 22:13:51 +0800 Subject: [PATCH] NEW: terraform 1.3 on alpine --- alpine/terraform13/Dockerfile | 9 +++++++++ alpine/terraform13/build.sh | 3 +++ 2 files changed, 12 insertions(+) create mode 100644 alpine/terraform13/Dockerfile create mode 100755 alpine/terraform13/build.sh diff --git a/alpine/terraform13/Dockerfile b/alpine/terraform13/Dockerfile new file mode 100644 index 0000000..57cff0e --- /dev/null +++ b/alpine/terraform13/Dockerfile @@ -0,0 +1,9 @@ +FROM alpine:latest +LABEL description="Terraform1.3 on Alpine" +LABEL maintainer="xpk@headdesk.me" +ENV container docker +RUN apk update +RUN apk add wget curl git bash libarchive-tools aws-cli +RUN wget -qO - https://releases.hashicorp.com/terraform/1.3.9/terraform_1.3.9_linux_amd64.zip | bsdtar -xOf - > /usr/bin/terraform +RUN chmod 755 /usr/bin/terraform +CMD ["/bin/bash"] diff --git a/alpine/terraform13/build.sh b/alpine/terraform13/build.sh new file mode 100755 index 0000000..ac35fc7 --- /dev/null +++ b/alpine/terraform13/build.sh @@ -0,0 +1,3 @@ +#!/bin/bash +export DOCKER_BUILDKIT=1 +docker buildx build --network host -t alpine/terraform13 .