2020-02-26 14:47:21 +00:00
|
|
|
ARG GO_VERSION=1.13.8
|
2019-07-18 09:01:07 +00:00
|
|
|
|
2020-02-26 14:40:11 +00:00
|
|
|
FROM golang:${GO_VERSION}-buster as dev
|
2018-06-20 16:20:49 +00:00
|
|
|
RUN apt-get update && apt-get -y install iptables \
|
|
|
|
protobuf-compiler
|
2018-05-29 20:53:19 +00:00
|
|
|
|
2018-07-25 14:39:31 +00:00
|
|
|
RUN go get -d github.com/gogo/protobuf/protoc-gen-gogo && \
|
|
|
|
cd /go/src/github.com/gogo/protobuf/protoc-gen-gogo && \
|
|
|
|
git reset --hard 30cf7ac33676b5786e78c746683f0d4cd64fa75b && \
|
|
|
|
go install
|
|
|
|
|
2018-11-01 17:08:29 +00:00
|
|
|
RUN go get golang.org/x/lint/golint \
|
2018-05-29 20:53:19 +00:00
|
|
|
golang.org/x/tools/cmd/cover \
|
|
|
|
github.com/mattn/goveralls \
|
|
|
|
github.com/gordonklaus/ineffassign \
|
2019-05-31 20:52:43 +00:00
|
|
|
github.com/client9/misspell/cmd/misspell
|
2018-05-29 20:53:19 +00:00
|
|
|
|
|
|
|
WORKDIR /go/src/github.com/docker/libnetwork
|
|
|
|
|
2018-06-20 00:19:16 +00:00
|
|
|
FROM dev
|
|
|
|
|
2018-05-29 20:53:19 +00:00
|
|
|
COPY . .
|