forked from go-swagger/go-swagger
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.ci
26 lines (22 loc) · 1.05 KB
/
Dockerfile.ci
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
FROM golang:latest
ENV GOCOVMODE atomic
RUN apt-get update -qq &&\
apt-get install -yqq tar gzip procps git curl build-essential rpm openssh-client ncurses-term python3-pip &&\
curl -sSL https://download.docker.com/linux/static/stable/x86_64/docker-20.10.12.tgz | tar -C /usr/bin --strip-components=1 -xzf - &&\
pip install --upgrade cloudsmith-cli &&\
apt-get clean autoclean &&\
apt-get autoremove --yes &&\
rm -rf /var/lib/{apt,dpkg,cache,log}
RUN set -e -x \
&& mkdir -p /usr/share/coverage /usr/share/testresults /usr/share/dist \
&& go install golang.org/x/tools/cmd/...@latest \
&& go install github.com/axw/gocov/gocov@latest \
&& go install github.com/matm/gocov-html@latest \
&& go install github.com/cee-dub/go-junit-report@latest \
&& go install github.com/aktau/github-release@latest \
&& go install github.com/mitchellh/gox@latest \
&& go install gotest.tools/gotestsum@latest \
&& go install github.com/goreleaser/nfpm/v2/cmd/nfpm@latest
VOLUME /usr/share/coverage
VOLUME /usr/share/testresults
VOLUME /usr/share/dist