Skip to content

Commit

Permalink
Use UID for dockerfile to allow runasNonRoot to be used. (elastic#35272)
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Montgomery <mmontg1@gmail.com>
  • Loading branch information
naemono committed May 4, 2023
1 parent 3ee25d0 commit f9f03fd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dev-tools/packaging/templates/docker/Dockerfile.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,10 @@ RUN for iter in {1..10}; do \
done; \
(exit $exit_code)
{{- end }}
USER 1000
{{- else }}
USER 0
{{- end }}
USER {{ .user }}

{{- range $i, $port := .ExposePorts }}
EXPOSE {{ $port }}
Expand Down

0 comments on commit f9f03fd

Please sign in to comment.