mirror of https://github.com/k3s-io/k3s
commit
ef77ce7147
|
@ -15,15 +15,17 @@
|
||||||
# This file creates a standard build environment for building cross
|
# This file creates a standard build environment for building cross
|
||||||
# platform go binary for the architecture kubernetes cares about.
|
# platform go binary for the architecture kubernetes cares about.
|
||||||
|
|
||||||
FROM golang:1.4.2
|
FROM golang:1.5.3
|
||||||
MAINTAINER Joe Beda <jbeda@google.com>
|
# Original MAINTAINER Joe Beda <jbeda@google.com>
|
||||||
|
MAINTAINER Brendan Burns <bburns@google.com>
|
||||||
|
|
||||||
ENV KUBE_CROSSPLATFORMS \
|
ENV KUBE_CROSSPLATFORMS \
|
||||||
linux/386 linux/arm \
|
linux/386 linux/arm \
|
||||||
darwin/amd64 darwin/386 \
|
darwin/amd64 darwin/386 \
|
||||||
windows/amd64 windows/386
|
windows/amd64 windows/386
|
||||||
|
|
||||||
RUN cd /usr/src/go/src && for platform in ${KUBE_CROSSPLATFORMS}; do GOOS=${platform%/*} GOARCH=${platform##*/} ./make.bash --no-clean; done
|
# Pre-compile the standard go library when cross-compiling. This is much easier now when we have go1.5
|
||||||
|
RUN for platform in ${KUBE_CROSSPLATFORMS}; do GOOS=${platform%/*} GOARCH=${platform##*/} go install std; done
|
||||||
|
|
||||||
# Install g++, then download and install protoc for generating protobuf output
|
# Install g++, then download and install protoc for generating protobuf output
|
||||||
RUN apt-get install -y g++ && apt-get clean && rm -rf /var/lib/apt/lists/* &&\
|
RUN apt-get install -y g++ && apt-get clean && rm -rf /var/lib/apt/lists/* &&\
|
||||||
|
|
Loading…
Reference in New Issue