mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-20 01:05:19 +01:00
08a4d8efd2
We should use a golang that isn't having security issues. This includes: * go1.14.6 (released 2020/07/16) includes fixes to the go command, the compiler, the linker, vet, and the database/sql, encoding/json, net/http, reflect, and testing packages. See the Go 1.14.6 milestone on our issue tracker for details. * go1.14.7 (released 2020/08/06) includes security fixes to the encoding/binary package. See the Go 1.14.7 milestone on our issue tracker for details (CVE-2020-16845) Signed-off-by: Dirk Mueller <dirk@dmllr.de> Signed-off-by: Dirk Mueller <dmueller@suse.com>
12 lines
408 B
Docker
12 lines
408 B
Docker
FROM golang:1.14.7
|
|
|
|
ARG VERSION
|
|
ARG COMMIT
|
|
|
|
ADD . /go/src/github.com/goharbor/harbor-scanner-clair/
|
|
WORKDIR /go/src/github.com/goharbor/harbor-scanner-clair/
|
|
|
|
RUN export GOFLAGS=-mod=vendor GOOS=linux GO111MODULE=on CGO_ENABLED=0 && \
|
|
go build -ldflags "-X main.version=$VERSION -X main.commit=$COMMIT -X main.date=`date -u --iso-8601=seconds`" \
|
|
-o harbor-scanner-clair cmd/harbor-scanner-clair/main.go
|