From 880785d795cfb62ddc15b6e6dd6375f37c8ff261 Mon Sep 17 00:00:00 2001 From: osgn422w Date: Tue, 3 Mar 2020 17:20:23 +0100 Subject: ES run as non-root ElasticSearch is started as non root user Issue-ID: CLAMP-668 Change-Id: I3f38cb20d84e5d760e99951a21260df8e24eed91 Signed-off-by: osgn422w --- src/main/docker/elasticsearch/Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/docker/elasticsearch/Dockerfile b/src/main/docker/elasticsearch/Dockerfile index 5e25e56..61c286f 100644 --- a/src/main/docker/elasticsearch/Dockerfile +++ b/src/main/docker/elasticsearch/Dockerfile @@ -37,4 +37,7 @@ COPY config/elasticsearch.yml /usr/share/elasticsearch/config/elasticsearch.yml COPY securityconfig/roles.yml /usr/share/elasticsearch/plugins/opendistro_security/securityconfig/roles.yml COPY securityconfig/internal_users.yml /usr/share/elasticsearch/plugins/opendistro_security/securityconfig/internal_users.yml +RUN chown elasticsearch:elasticsearch /usr/share/supervisor +USER elasticsearch +ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"] -- cgit 1.2.3-korg