-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
24 lines (15 loc) · 838 Bytes
/
Dockerfile
File metadata and controls
24 lines (15 loc) · 838 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM golang:1.13-alpine AS build
COPY main.go .
ARG LDFLAGS
RUN GOOS=linux GOARCH=386 go build -ldflags "${LDFLAGS}" -o github-vul
FROM scratch
COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY --from=build /go/github-vul /go/github-vul
ENTRYPOINT ["/go/github-vul"]
ARG NAME
ARG VERSION
ARG COMMIT
ARG BUILD_DATE
LABEL maintainer="Kamil Sindi" repository="https://github.com/jwplayer/github-vul" homepage="https://github.com/jwplayer/github-vul"
LABEL org.label-schema.name="${NAME}" org.label-schema.build-date="${BUILD_DATE}" org.label-schema.vcs-ref="${COMMIT}" org.label-schema.version="${VERSION}" org.label-schema.schema-version="1.0"
LABEL com.github.alerts.name="${NAME}" com.github.alerts.description="enable vulnerability alerts" com.github.alerts.icon="github" com.github.alerts.color="black"