forked from target/impeller
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
22 lines (20 loc) · 819 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM golang:1.11-alpine as builder
WORKDIR /go/src/github.com/target/impeller
COPY . .
RUN apk add --no-cache git && \
go get -d ./... && \
go build
FROM alpine:3.8
ENV HELM_VERSION=v2.10.0
ENV KUBECTL_VERSION=v1.11.0
RUN cd /tmp && \
wget -O /tmp/helm.tar.gz https://storage.googleapis.com/kubernetes-helm/helm-${HELM_VERSION}-linux-amd64.tar.gz && \
tar -xvf /tmp/helm.tar.gz && \
cp linux-amd64/helm /usr/bin/ && \
chmod +x /usr/bin/helm && \
rm -rf /tmp/helm.tar.gz /tmp/linux-amd64
RUN wget -O /usr/bin/kubectl https://storage.googleapis.com/kubernetes-release/release/${KUBECTL_VERSION}/bin/linux/amd64/kubectl && \
chmod +x /usr/bin/kubectl
RUN mkdir /root/.kube
ENTRYPOINT ["/usr/bin/impeller"]
COPY --from=builder /go/src/github.com/target/impeller/impeller /usr/bin/impeller