Skip to content

Commit

Permalink
Run the jaeger-agent as a non-root user by default (#2466)
Browse files Browse the repository at this point in the history
Signed-off-by: chgl <[email protected]>
  • Loading branch information
chgl authored Sep 14, 2020
1 parent df2582d commit 0a889e8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/agent/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,11 @@ RUN apk add --update --no-cache ca-certificates

FROM scratch
ARG TARGETARCH=amd64
ARG USER_UID=10001
COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt

EXPOSE 5775/udp 6831/udp 6832/udp 5778
COPY agent-linux-$TARGETARCH /go/bin/agent-linux
ENTRYPOINT ["/go/bin/agent-linux"]

USER ${USER_UID}

0 comments on commit 0a889e8

Please sign in to comment.