-
Notifications
You must be signed in to change notification settings - Fork 10
/
Dockerfile
39 lines (31 loc) · 1.36 KB
/
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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
FROM golang:1.22.8-alpine3.20 as builder
RUN apk add --update --no-cache ca-certificates tzdata git make bash && update-ca-certificates
ADD . /opt
WORKDIR /opt
RUN git update-index --refresh; make opa-openshift
FROM docker.io/library/alpine:3.20 as runner
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY --from=builder /opt/opa-openshift /bin/opa-openshift
ARG BUILD_DATE
ARG VERSION
ARG VCS_REF
ARG DOCKERFILE_PATH
LABEL vendor="Observatorium" \
name="observatorium/opa-openshift" \
description="OPA-OpenShift proxy" \
io.k8s.display-name="observatorium/opa-openshift" \
io.k8s.description="OPA-OpenShift proxy" \
maintainer="Observatorium <team-logging@redhat.com>" \
version="$VERSION" \
org.label-schema.build-date=$BUILD_DATE \
org.label-schema.description="OPA-OpenShift proxy" \
org.label-schema.docker.cmd="docker run --rm observatorium/opa-openshift" \
org.label-schema.docker.dockerfile=$DOCKERFILE_PATH \
org.label-schema.name="observatorium/opa-openshift" \
org.label-schema.schema-version="1.0" \
org.label-schema.vcs-branch=$VCS_BRANCH \
org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.vcs-url="https://github.com/observatorium/opa-openshift" \
org.label-schema.vendor="observatorium/opa-openshift" \
org.label-schema.version=$VERSION
ENTRYPOINT ["/bin/opa-openshift"]