forked from jimmidyson/configmap-reload
-
Notifications
You must be signed in to change notification settings - Fork 19
/
Dockerfile.ocp
20 lines (16 loc) · 909 Bytes
/
Dockerfile.ocp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Dockerfile used by OSBS and by prow CI.
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.22-openshift-4.17 AS builder
WORKDIR /go/src/github.com/jimmidyson/configmap-reload
COPY . .
ENV GOFLAGS="-mod=vendor"
RUN make out/configmap-reload
FROM registry.ci.openshift.org/ocp/4.17:base-rhel9
LABEL io.k8s.display-name="OpenShift ConfigMap Reload" \
io.k8s.description="This is a component reloads another process if a configured configmap volume is remounted." \
io.openshift.tags="kubernetes" \
summary="This is a component reloads another process if a configured configmap volume is remounted." \
maintainer="OpenShift Monitoring Team <team-monitoring@redhat.com>"
ARG FROM_DIRECTORY=/go/src/github.com/jimmidyson/configmap-reload
COPY --from=builder ${FROM_DIRECTORY}/out/configmap-reload /usr/bin/configmap-reload
USER nobody
ENTRYPOINT ["/usr/bin/configmap-reload"]