forked from go-swagger/go-swagger
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.alpine.ci
22 lines (18 loc) · 949 Bytes
/
Dockerfile.alpine.ci
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM golang:alpine
ENV GOCOVMODE atomic
RUN apk add -U --no-cache bash tar gzip xz procps git curl alpine-sdk libffi-dev rpm dpkg openssh-client ncurses py3-pip &&\
pip install --upgrade cloudsmith-cli &&\
curl -sSL https://download.docker.com/linux/static/stable/x86_64/docker-20.10.12.tgz | tar -C /usr/bin --strip-components=1 -xzf -
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