forked from softonic/kubewatch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
27 lines (20 loc) · 1.04 KB
/
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
27
#------------------------------------------------------------------------------
# Set the base image for subsequent instructions:
#------------------------------------------------------------------------------
FROM alpine
MAINTAINER Gustavo Michels <gustavo.michels@gmail.com>
#------------------------------------------------------------------------------
# Environment variables:
#------------------------------------------------------------------------------
ENV GOPATH="/go"
#------------------------------------------------------------------------------
# Build and install:
#------------------------------------------------------------------------------
RUN apk add -U --no-cache -t dev git go musl-dev \
&& go get github.com/gmichels/kubewatch \
&& cp ${GOPATH}/bin/kubewatch /usr/local/bin \
&& apk del --purge dev && rm -rf /tmp/* /go
#------------------------------------------------------------------------------
# Entrypoint:
#------------------------------------------------------------------------------
ENTRYPOINT [ "kubewatch" ]