mirror of https://github.com/docker/docs.git
Merge pull request #1338 from vieux/get_compiled_go
fix test Dockerfile, use precompiled go
This commit is contained in:
commit
ae81ef652e
|
|
@ -4,19 +4,14 @@
|
||||||
FROM dockerswarm/dind:1.6.0
|
FROM dockerswarm/dind:1.6.0
|
||||||
|
|
||||||
# Install dependencies.
|
# Install dependencies.
|
||||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
RUN apt-get update && apt-get install -y --no-install-recommends git \
|
||||||
build-essential \
|
|
||||||
file \
|
|
||||||
git \
|
|
||||||
&& apt-get clean && rm -rf /var/lib/apt/lists/*
|
&& apt-get clean && rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# Install golang
|
# Install golang
|
||||||
ENV GO_VERSION 1.5
|
ENV GO_VERSION 1.5
|
||||||
RUN curl -sSL https://golang.org/dl/go${GO_VERSION}.src.tar.gz | tar -v -C /usr/local -xz \
|
RUN curl -sSL https://storage.googleapis.com/golang/go${GO_VERSION}.linux-amd64.tar.gz | tar -v -C /usr/local -xz
|
||||||
&& mkdir -p /go/bin
|
|
||||||
ENV PATH /go/bin:/usr/local/go/bin:$PATH
|
ENV PATH /go/bin:/usr/local/go/bin:$PATH
|
||||||
ENV GOPATH /go
|
ENV GOPATH /go
|
||||||
RUN cd /usr/local/go/src && ./make.bash --no-clean 2>&1
|
|
||||||
|
|
||||||
# Go dependencies
|
# Go dependencies
|
||||||
RUN go get github.com/tools/godep
|
RUN go get github.com/tools/godep
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue