Includes fixes to the go command, linker, and the net/http, mime/multipart,
ld/macho, bytes, and strings packages. See the Go 1.10.4 milestone on the
issue tracker for details:
https://github.com/golang/go/issues?q=milestone%3AGo1.10.4
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit 44ca0901d1)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
18 lines
575 B
Docker
18 lines
575 B
Docker
FROM golang:1.10.4-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", "./..."]
|