Skip to content

Commit 2a478ed

Browse files
committed
this is still used, let's leave it in place for now
1 parent 5677978 commit 2a478ed

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

‎Dockerfile‎

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
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 --no-cache 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"]

0 commit comments

Comments
 (0)