github.com/sl1pm4t/terraform@v0.6.4-0.20170725213156-870617d22df3/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 MAINTAINER "HashiCorp Terraform Team <terraform@hashicorp.com>" 13 14 RUN apk add --update git bash openssh 15 16 ENV TF_DEV=true 17 18 WORKDIR $GOPATH/src/github.com/hashicorp/terraform 19 COPY . . 20 RUN /bin/bash scripts/build.sh 21 22 WORKDIR $GOPATH 23 ENTRYPOINT ["terraform"]