github.com/hs0210/hashicorp-terraform@v0.11.12-beta1/Dockerfile (about) 1 # This Dockerfile builds on golang:alpine by building Terraform from source 2 # using the current working directory. 3 # 4 # This produces a docker image that contains a working Terraform binary along 5 # with all of its source code, which is what gets released on hub.docker.com 6 # as terraform:full. The main releases (terraform:latest, terraform:light and 7 # the release tags) are lighter images including only the officially-released 8 # binary from releases.hashicorp.com; these are built instead from 9 # scripts/docker-release/Dockerfile-release. 10 11 FROM golang:alpine 12 LABEL maintainer="HashiCorp Terraform Team <terraform@hashicorp.com>" 13 14 RUN apk add --update git bash openssh 15 16 ENV TF_DEV=true 17 ENV TF_RELEASE=1 18 19 WORKDIR $GOPATH/src/github.com/hashicorp/terraform 20 COPY . . 21 RUN /bin/bash scripts/build.sh 22 23 WORKDIR $GOPATH 24 ENTRYPOINT ["terraform"]