forked from rainsome-org1/kubernetes-coreos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
25 lines (20 loc) · 906 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
# Kubernetes: build
#
FROM google/debian:wheezy
MAINTAINER Kelsey Hightower <kelsey.hightower@gmail.com>
RUN apt-get update -y && apt-get install --no-install-recommends -y -q curl build-essential ca-certificates git mercurial bzr
RUN mkdir /goroot && curl https://storage.googleapis.com/golang/go1.3.linux-amd64.tar.gz | tar xvzf - -C /goroot --strip-components=1
RUN mkdir /gopath
ENV GOROOT /goroot
ENV GOPATH /gopath
ENV PATH $PATH:$GOROOT/bin:$GOPATH/bin
RUN mkdir -p /kubernetes-binaries/
RUN mkdir -p $GOPATH/src/github.com/GoogleCloudPlatform
WORKDIR /gopath/src/
RUN git clone --depth 1 https://github.com/GoogleCloudPlatform/kubernetes.git github.com/GoogleCloudPlatform/kubernetes
WORKDIR /gopath/src/github.com/GoogleCloudPlatform/kubernetes
RUN go get github.com/tools/godep
RUN pwd
RUN bash -x ./hack/build-go.sh
RUN mv _output/go/bin/* /kubernetes-binaries/
VOLUME /kubernetes-binaries