-
Notifications
You must be signed in to change notification settings - Fork 17
/
Dockerfile1.10
41 lines (32 loc) · 1.24 KB
/
Dockerfile1.10
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
FROM golang:1.10.0-alpine3.7
LABEL maintainer="Bo-Yi Wi <[email protected]>"
RUN apk update && \
apk upgrade --update-cache --available
RUN apk add git make curl perl bash build-base zlib-dev ucl-dev
RUN git clone https://github.com/upx/upx.git && cd upx && \
git submodule update --init --recursive && \
make all && cp -r src/upx.out /usr/local/bin/upx
RUN rm -rf /var/cache/apk/*
# install glide package management.
RUN curl https://glide.sh/get | sh
# install golang tools
RUN go get -u github.com/jstemmer/go-junit-report
RUN go get -u github.com/axw/gocov/gocov
RUN go get -u github.com/AlekSi/gocov-xml
RUN go get -u github.com/golang/lint/golint
RUN go get -u github.com/mitchellh/gox
# a markdown processor for Go
RUN go get -u github.com/russross/blackfriday-tool
# install govendor tool
RUN go get -u github.com/kardianos/govendor
# install embedmd tool
RUN go get -u github.com/campoy/embedmd
# install misspell tool
RUN go get -u github.com/client9/misspell/cmd/misspell
# install node-prune tool
RUN go get -u github.com/tj/node-prune/cmd/node-prune
# install cloc tool
RUN curl https://raw.githubusercontent.com/AlDanial/cloc/master/cloc -o /usr/bin/cloc \
&& chmod 755 /usr/bin/cloc
ADD coverage.sh /usr/bin/coverage
WORKDIR $GOPATH