forked from openclarity/openclarity
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
24 lines (22 loc) · 984 Bytes
/
Dockerfile
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.14.4-alpine AS builder
WORKDIR /go/src/gitlab.com/portshift/kubei/
COPY ./ ./
RUN CGO_ENABLED=0 go build -o kubei ./cmd/kubei/
FROM alpine:3.11.3
RUN apk add --no-cache bash ca-certificates
RUN mkdir /lib64 && ln -s /lib/libc.musl-x86_64.so.1 /lib64/ld-linux-x86-64.so.2
RUN mkdir /app
COPY pkg/webapp/view.html /app/
RUN chmod +rw /app/view.html
COPY --from=builder /go/src/gitlab.com/portshift/kubei/kubei /app/
RUN chmod +x /app/kubei
ENTRYPOINT ["/app/kubei"]
# Build-time metadata as defined at http://label-schema.org
ARG BUILD_DATE
ARG VCS_REF
LABEL org.label-schema.build-date=$BUILD_DATE \
org.label-schema.name="kubei" \
org.label-schema.description="Vulnerabilities scanning tool that allows users to get an accurate and immediate risk assessment of their kubernetes clusters" \
org.label-schema.url="https://github.com/Portshift/kubei" \
org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.vcs-url="https://github.com/Portshift/kubei"