File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,21 +5,26 @@ LABEL Description="up-to-date ubuntu environment" Vendor="Cloudtools"
55RUN apt-get update && apt-get install -y \
66 build-essential \
77 curl \
8- git-core
8+ git-core \
9+ golang
910
1011LABEL Description="up-to-date golang environment"
1112
1213RUN mkdir -p /build
14+ RUN curl -O https://storage.googleapis.com/golang/go1.5.1.linux-amd64.tar.gz
15+ RUN tar -C /usr/local -xzf go1.5.1.linux-amd64.tar.gz
1316
17+ ENV GOROOT_BOOTSTRAP=/usr/local/go
1418ENV GOROOT=/build/go-build/go
15- ENV PATH=/build/go-build/go/bin:/usr/local/bin:/usr/bin:/bin
16-
17- RUN mkdir -p /build/go-build; \
18- cd /build/go-build; \
19- curl -s https://storage.googleapis.com/golang/go1.4.2.src.tar.gz | tar -zxf -; \
20- cd /build/go-build/go/src; \
21- GOOS=darwin GOARCH=amd64 ./make.bash --no-clean 2>&1 > /dev/null ;
22-
19+ ENV PATH=/build/go-build/go/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/go/bin
20+
21+ RUN mkdir -p /build/go-build \
22+ && cd /build/go-build \
23+ && curl -o go.tar.gz -s https://storage.googleapis.com/golang/go1.5.1.src.tar.gz \
24+ && echo "0df564746d105f4180c2b576a1553ebca9d9a124 go.tar.gz" | sha1sum -c - \
25+ && tar -zxf go.tar.gz \
26+ && cd /build/go-build/go/src \
27+ && GOOS=darwin GOARCH=amd64 ./make.bash --no-clean 2>&1 > /dev/null ;
2328
2429LABEL Description="ssh-cert-authority builder"
2530
You can’t perform that action at this time.
0 commit comments