forked from vbehar/openshift-dashboard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
28 lines (20 loc) · 900 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
27
28
# vbehar/openshift-dashboard
FROM openshift/origin-base
MAINTAINER Vincent Behar
LABEL io.k8s.description="Dashboard of resources from multiple OpenShift projects" \
io.k8s.display-name="OpenShift Dashboard" \
io.openshift.tags="openshift,dashboard"
ENV GO_VERSION=1.4.2 \
GOPATH=/go/src/github.com/vbehar/openshift-dashboard/Godeps/_workspace \
GOROOT=/go
COPY . /go/src/github.com/vbehar/openshift-dashboard/
RUN yum install -y gcc \
&& curl -jksSL https://golang.org/dl/go${GO_VERSION}.linux-amd64.tar.gz | gunzip -c - | tar -xf - -C / \
&& /go/bin/go install github.com/vbehar/openshift-dashboard \
&& mv /go/bin/openshift-dashboard /openshift-dashboard \
&& mv /go/src/github.com/vbehar/openshift-dashboard/public / \
&& mv /go/src/github.com/vbehar/openshift-dashboard/templates / \
&& rm -rf /go \
&& yum clean all
EXPOSE 8080
CMD [ "/openshift-dashboard" ]