forked from go-swagger/go-swagger
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.ci
22 lines (18 loc) · 842 Bytes
/
Dockerfile.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:1.8-alpine
MAINTAINER go-swagger contributors
ENV GOCOVMODE atomic
RUN apk add -U --no-cache bash tar gzip xz procps git curl ruby ruby-dev alpine-sdk libffi-dev rpm dpkg openssh-client &&\
curl -sSL https://get.docker.com/builds/Linux/x86_64/docker-17.04.0-ce.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 get -u golang.org/x/tools/cmd/... \
&& go get -u github.com/axw/gocov/gocov \
&& go get -u gopkg.in/matm/v1/gocov-html \
&& go get -u -t github.com/cee-dub/go-junit-report \
&& go get -u github.com/aktau/github-release \
&& go get -u github.com/mitchellh/gox \
&& gem install --no-ri --no-rdoc fpm \
&& gem sources -c
VOLUME /usr/share/coverage
VOLUME /usr/share/testresults
VOLUME /usr/share/dist