forked from rancher/terraform-provider-rke
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
20 lines (15 loc) · 843 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM golang:1.10 as builder
LABEL maintainer="Kazumichi Yamamoto <[email protected]>"
MAINTAINER Kazumichi Yamamoto <[email protected]>
RUN apt-get update && apt-get -y install bash git make zip && apt-get clean && rm -rf /var/cache/apt/archives/* /var/lib/apt/lists/*
RUN go get -u github.com/motemen/gobump/cmd/gobump
ADD . /go/src/github.com/yamamoto-febc/terraform-provider-rke
WORKDIR /go/src/github.com/yamamoto-febc/terraform-provider-rke
RUN make build
###
FROM hashicorp/terraform:0.11.7
MAINTAINER Kazumichi Yamamoto <[email protected]>
LABEL MAINTAINER 'Kazumichi Yamamoto <[email protected]>'
RUN set -x && apk add --no-cache --update ca-certificates
RUN mkdir -p /root/.terraform.d/plugins
COPY --from=builder /go/src/github.com/yamamoto-febc/terraform-provider-rke/bin/* /root/.terraform.d/plugins/