harbor/make/photon/clair-adapter/Dockerfile.binary
Wang Yan 85835f637e
bump up golang version to 1.17 (#16750)
Signed-off-by: wang yan <wangyan@vmware.com>
2022-04-27 10:01:42 +08:00

8 lines
280 B
Docker

FROM golang:1.17.9
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 -o harbor-scanner-clair cmd/harbor-scanner-clair/main.go