-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
19 lines (13 loc) · 633 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM golang:1.14.7 AS base
FROM goreleaser/goreleaser:v0.133 AS goreleaser
FROM golangci/golangci-lint:v1.26.0 AS golangci-lint
FROM base AS build
RUN apt-get update && apt-get install -y \
make \
gcc \
&& rm -rf /var/lib/apt/lists/*
COPY --from=goreleaser /bin/goreleaser /bin/
COPY --from=golangci-lint /usr/bin/golangci-lint /bin/
RUN GO111MODULE=on go get github.com/gojp/goreportcard/cmd/goreportcard-cli@59167b5 \
&& mv /go/bin/goreportcard-cli /bin/
RUN wget -qO- https://github.com/alecthomas/gometalinter/releases/download/v3.0.0/gometalinter-3.0.0-linux-amd64.tar.gz | tar -xzf - --strip-components=1 -C /bin