2018-02-08 03:56:12 -05:00
|
|
|
FROM golang:1.9.4-alpine3.6
|
2017-05-02 15:10:03 -04:00
|
|
|
|
|
|
|
RUN apk add -U git
|
|
|
|
|
2017-10-11 12:18:27 -04:00
|
|
|
ARG GOMETALINTER_SHA=7f9672e7ea538b8682e83395d50b12f09bb17b91
|
2017-07-18 12:22:28 -04:00
|
|
|
RUN go get -d github.com/alecthomas/gometalinter && \
|
2017-07-11 14:19:02 -04:00
|
|
|
cd /go/src/github.com/alecthomas/gometalinter && \
|
|
|
|
git checkout -q "$GOMETALINTER_SHA" && \
|
|
|
|
go build -v -o /usr/local/bin/gometalinter . && \
|
|
|
|
gometalinter --install && \
|
|
|
|
rm -rf /go/src/* /go/pkg/*
|
2017-05-02 15:10:03 -04:00
|
|
|
|
2017-10-12 11:44:03 -04:00
|
|
|
ARG NAKEDRET_SHA=3ddb495a6d63bc9041ba843e7d651cf92639d8cb
|
|
|
|
RUN go get -d github.com/alexkohler/nakedret && \
|
|
|
|
cd /go/src/github.com/alexkohler/nakedret && \
|
|
|
|
git checkout -q "$NAKEDRET_SHA" && \
|
|
|
|
go build -v -o /usr/local/bin/nakedret . && \
|
|
|
|
rm -rf /go/src/* /go/pkg/*
|
|
|
|
|
2017-05-02 15:10:03 -04:00
|
|
|
WORKDIR /go/src/github.com/docker/cli
|
2017-06-09 12:32:14 -04:00
|
|
|
ENV CGO_ENABLED=0
|
2017-08-15 14:32:44 -04:00
|
|
|
ENV DISABLE_WARN_OUTSIDE_CONTAINER=1
|
2017-05-02 15:10:03 -04:00
|
|
|
ENTRYPOINT ["/usr/local/bin/gometalinter"]
|
2017-06-09 12:32:14 -04:00
|
|
|
CMD ["--config=gometalinter.json", "./..."]
|