1
+ # Copyright 2017 The Go Authors. All rights reserved.
2
+ # Use of this source code is governed by a BSD-style
3
+ # license that can be found in the LICENSE file.
4
+ FROM golang:1.8
5
+ LABEL maintainer "
[email protected] "
6
+
7
+ RUN go get -d github.com/aclements/go-gg/generic/slice && \
8
+ go get -d github.com/aclements/go-gg/gg && \
9
+ go get -d github.com/aclements/go-gg/ggstat && \
10
+ go get -d github.com/aclements/go-gg/table && \
11
+ cd /go/src/github.com/aclements/go-gg && git reset --hard abd1f791f5ee99465ee7cffe771436379d6cee5a
12
+
13
+ RUN go get -d github.com/aclements/go-moremath/stats && \
14
+ cd /go/src/github.com/aclements/go-moremath && git reset --hard 033754ab1fee508c9f98f2785eec2365964e0b05
15
+
16
+ RUN go get -d github.com/google/go-github/github && \
17
+ cd /go/src/github.com/google/go-github && git reset --hard 7a51fb928f52a196d5f31daefb8a489453ef54ff
18
+
19
+ RUN go get -d github.com/kylelemons/godebug/pretty && \
20
+ cd /go/src/github.com/kylelemons/godebug && git reset --hard a616ab194758ae0a11290d87ca46ee8c440117b0
21
+
22
+ RUN go get -d golang.org/x/net/context && \
23
+ cd /go/src/golang.org/x/net && git reset --hard fe686d45ea04bc1bd4eff6a52865ce8757320325
24
+
25
+ RUN go get -d golang.org/x/oauth2 && \
26
+ cd /go/src/golang.org/x/oauth2 && git reset --hard f047394b6d14284165300fd82dad67edb3a4d7f6
27
+
28
+ RUN go get -d golang.org/x/sync/errgroup && \
29
+ cd /go/src/golang.org/x/sync && git reset --hard f52d1811a62927559de87708c8913c1650ce4f26
30
+
31
+ # Optimization to speed COPY+go install steps later. This go install
32
+ # isn't required for correctness.
33
+ RUN go install github.com/aclements/go-gg/generic/slice \
34
+ github.com/aclements/go-gg/gg \
35
+ github.com/aclements/go-gg/ggstat \
36
+ github.com/aclements/go-gg/table \
37
+ github.com/aclements/go-moremath/stats \
38
+ github.com/google/go-github/github \
39
+ github.com/kylelemons/godebug/pretty \
40
+ golang.org/x/net/context \
41
+ golang.org/x/oauth2 \
42
+ golang.org/x/sync/errgroup
43
+
44
+ COPY . /go/src/golang.org/x/build/
45
+
46
+ RUN go install -ldflags "-linkmode=external -extldflags '-static -pthread'" golang.org/x/build/devapp/devappserver
0 commit comments