forked from vmware-archive/kubewatch
-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
19 lines (13 loc) · 619 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM golang AS builder
MAINTAINER "Cuong Manh Le <[email protected]>"
RUN apt-get update && \
apt-get install -y --no-install-recommends build-essential && \
apt-get clean && \
mkdir -p "$GOPATH/src/github.com/bitnami-labs/kubewatch"
ADD . "$GOPATH/src/github.com/bitnami-labs/kubewatch"
RUN cd "$GOPATH/src/github.com/bitnami-labs/kubewatch" && \
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a --installsuffix cgo --ldflags="-s" -o /kubewatch
FROM bitnami/minideb:stretch
RUN install_packages ca-certificates
COPY --from=builder /kubewatch /bin/kubewatch
ENTRYPOINT ["/bin/kubewatch"]