github.com/kevinklinger/open_terraform@v1.3.6/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. This is not what produces the official releases
     6  # in the "terraform" namespace on Dockerhub; those images include only
     7  # the officially-released binary from releases.hashicorp.com and are
     8  # built by the (closed-source) official release process.
     9  
    10  FROM docker.mirror.hashicorp.services/golang:alpine
    11  LABEL maintainer="HashiCorp Terraform Team <terraform@hashicorp.com>"
    12  
    13  RUN apk add --no-cache git bash openssh
    14  
    15  ENV TF_DEV=true
    16  ENV TF_RELEASE=1
    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"]