go1.11.4 (released 2018/12/14) includes fixes to cgo, the compiler, linker, runtime, documentation, go command, and the net/http and go/types packages. It includes a fix to a bug introduced in Go 1.11.3 that broke go get for import path patterns containing "...". See the Go 1.11.4 milestone for details: https://github.com/golang/go/issues?q=milestone%3AGo1.11.4+label%3ACherryPickApproved go1.11.3 (released 2018/12/14) - crypto/x509: CPU denial of service in chain validation golang/go#29233 - cmd/go: directory traversal in "go get" via curly braces in import paths golang/go#29231 - cmd/go: remote command execution during "go get -u" golang/go#29230 See the Go 1.11.3 milestone on the issue tracker for details: https://github.com/golang/go/issues?q=milestone%3AGo1.11.3 Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
25 lines
837 B
Docker
25 lines
837 B
Docker
FROM golang:1.11.4-alpine
|
|
|
|
RUN apk add -U git make bash coreutils ca-certificates curl
|
|
|
|
ARG VNDR_SHA=1fc68ee0c852556a9ed53cbde16247033f104111
|
|
RUN go get -d github.com/LK4D4/vndr && \
|
|
cd /go/src/github.com/LK4D4/vndr && \
|
|
git checkout -q "$VNDR_SHA" && \
|
|
go build -v -o /usr/bin/vndr . && \
|
|
rm -rf /go/src/* /go/pkg/* /go/bin/*
|
|
|
|
ARG ESC_SHA=58d9cde84f237ecdd89bd7f61c2de2853f4c5c6e
|
|
RUN go get -d github.com/mjibson/esc && \
|
|
cd /go/src/github.com/mjibson/esc && \
|
|
git checkout -q "$ESC_SHA" && \
|
|
go build -v -o /usr/bin/esc . && \
|
|
rm -rf /go/src/* /go/pkg/* /go/bin/*
|
|
|
|
ENV CGO_ENABLED=0 \
|
|
PATH=$PATH:/go/src/github.com/docker/cli/build \
|
|
DISABLE_WARN_OUTSIDE_CONTAINER=1
|
|
WORKDIR /go/src/github.com/docker/cli
|
|
CMD sh
|
|
COPY . .
|