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