forked from coreos/tectonic-installer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
25 lines (16 loc) · 706 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
FROM golang:alpine
ENV TERRAFORM_VERSION=0.8.8
RUN apk add --update git bash
ENV TF_DEV=true
WORKDIR $GOPATH/src/github.com/hashicorp/terraform
RUN git clone https://github.com/hashicorp/terraform.git ./ && \
git checkout v${TERRAFORM_VERSION} && \
/bin/bash scripts/build.sh
COPY ./plugins $GOPATH/src/github.com/coreos-inc/tectonic-platform-sdk/plugins
RUN go build -o $GOTPAH/bin/terraform-provider-localfile \
github.com/coreos-inc/tectonic-platform-sdk/plugins/bins/provider-localfile
RUN go build -o $GOPATH/bin/terraform-provider-template \
github.com/coreos-inc/tectonic-platform-sdk/plugins/bins/provider-template
VOLUME /terraform
WORKDIR /terraform
ENTRYPOINT ["terraform"]