Browse Source

Use UID for dockerfile to allow runAsNonRoot to be used. (#95390)

Signed-off-by: Michael Montgomery <mmontg1@gmail.com>
Michael Montgomery 2 years ago
parent
commit
a0056941e5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      distribution/docker/src/docker/Dockerfile

+ 1 - 1
distribution/docker/src/docker/Dockerfile

@@ -289,7 +289,7 @@ ENTRYPOINT ["/bin/tini", "--", "/usr/local/bin/docker-entrypoint.sh"]
 CMD ["eswrapper"]
 <% } %>
 
-USER elasticsearch:root
+USER 1000:0
 
 <% if (docker_base == 'iron_bank') { %>
 HEALTHCHECK --interval=10s --timeout=5s --start-period=1m --retries=5 CMD curl -I -f --max-time 5 http://localhost:9200 || exit 1