-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathDockerfile
26 lines (21 loc) · 921 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
26
FROM golang:1.10 AS builder
MAINTAINER Kazumichi Yamamoto <[email protected]>
LABEL 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/*
ADD . /go/src/github.com/yamamoto-febc/kube-etcd-helper
WORKDIR /go/src/github.com/yamamoto-febc/kube-etcd-helper
RUN ["make","clean","build"]
#----------
FROM alpine:3.7
MAINTAINER Kazumichi Yamamoto <[email protected]>
LABEL MAINTAINER 'Kazumichi Yamamoto <[email protected]>'
RUN set -x && apk add --no-cache --update ca-certificates
COPY --from=builder /go/src/github.com/yamamoto-febc/kube-etcd-helper/bin/kube-etcd-helper_linux_amd64 /usr/local/bin/kube-etcd-helper
RUN chmod +x /usr/local/bin/kube-etcd-helper
ENTRYPOINT ["/usr/local/bin/kube-etcd-helper"]