Skip to content

Commit

Permalink
Fix issue in Dockerfile.elastic-agent.tmpl.
Browse files Browse the repository at this point in the history
  • Loading branch information
blakerouse committed Jan 13, 2022
1 parent 10e71d5 commit 1185763
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ COPY --from=home {{ $beatHome }}/NOTICE.txt /licenses
RUN readlink -f {{ $beatBinary }} | xargs setcap {{ .linux_capabilities }}
{{- end }}

{{- if eq .user "root" }}
{{- if ne .user "root" }}
RUN groupadd --gid 1000 {{ .BeatName }}
RUN useradd -M --uid 1000 --gid 1000 --groups 0 --home {{ $beatHome }} {{ .user }}
{{- if (and (contains .image_name "-complete") (not (contains .from "ubi-minimal"))) }}
Expand Down

0 comments on commit 1185763

Please sign in to comment.