summaryrefslogtreecommitdiffstats
path: root/src/monitor/build/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'src/monitor/build/Dockerfile')
-rw-r--r--src/monitor/build/Dockerfile15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/monitor/build/Dockerfile b/src/monitor/build/Dockerfile
new file mode 100644
index 00000000..812eb47e
--- /dev/null
+++ b/src/monitor/build/Dockerfile
@@ -0,0 +1,15 @@
+FROM registry.access.redhat.com/ubi7/ubi-minimal:latest
+
+ENV OPERATOR=/usr/local/bin/monitor \
+ USER_UID=1001 \
+ USER_NAME=monitor
+
+# install operator binary
+COPY _output/bin/monitor ${OPERATOR}
+
+COPY bin /usr/local/bin
+RUN /usr/local/bin/user_setup
+
+ENTRYPOINT ["/usr/local/bin/entrypoint"]
+
+USER ${USER_UID}