0
0
mirror of https://github.com/thegeeklab/wp-opentofu.git synced 2024-09-20 01:42:45 +02:00
wp-opentofu/Dockerfile

20 lines
740 B
Docker
Raw Normal View History

2015-11-09 20:23:42 +01:00
# Docker image for Drone's terraform deployment plugin
#
# CGO_ENABLED=0 go build -a -tags netgo
# docker build --rm=true -t plugins/drone-terraform .
FROM gliderlabs/alpine:3.2
RUN apk-install ca-certificates git
2015-11-10 14:56:18 +01:00
ENV TERRAFORM_VERSION 0.6.16
2015-11-10 14:56:18 +01:00
RUN apk update && \
wget -q "https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.21-r2/glibc-2.21-r2.apk" && \
2015-11-10 14:56:18 +01:00
apk add --allow-untrusted glibc-2.21-r2.apk && \
wget -q -O terraform.zip "https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_linux_amd64.zip" && \
unzip terraform.zip -d /bin && \
rm -rf /var/cache/apk/* glibc-2.21-r2.apk terraform.zip
2015-11-10 14:56:18 +01:00
2015-11-09 20:23:42 +01:00
ADD drone-terraform /bin/
ENTRYPOINT ["/bin/drone-terraform"]