mirror of
https://github.com/docker/cli.git
synced 2026-01-13 18:22:35 +03:00
go1.12.1 (released 2019/03/14) includes fixes to cgo, the compiler, the go command, and the fmt, net/smtp, os, path/filepath, sync, and text/template packages. See the Go 1.12.1 milestone on our issue tracker for details. For the relase notes of Go 1.12.0, see: https://golang.org/doc/go1.12 Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
19 lines
587 B
Docker
19 lines
587 B
Docker
FROM golang:1.12.1-alpine
|
|
|
|
RUN apk add -U git
|
|
|
|
ARG GOMETALINTER_SHA=v2.0.6
|
|
RUN go get -d github.com/alecthomas/gometalinter && \
|
|
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/*
|
|
|
|
WORKDIR /go/src/github.com/docker/cli
|
|
ENV CGO_ENABLED=0
|
|
ENV DISABLE_WARN_OUTSIDE_CONTAINER=1
|
|
ENTRYPOINT ["/usr/local/bin/gometalinter"]
|
|
CMD ["--config=gometalinter.json", "./..."]
|
|
COPY . .
|