-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use non root user in operator.Dockerfile (#759)
* Use non-root user in operator image * run make manager first
- Loading branch information
1 parent
a13cddc
commit 7e58e52
Showing
3 changed files
with
17 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,14 @@ | ||
FROM alpine:3.20 | ||
|
||
RUN apk add tzdata --no-cache | ||
RUN apk upgrade --no-cache | ||
ENV GID=10001 | ||
ENV UID=10000 | ||
ENV USER=pulsar | ||
|
||
RUN apk upgrade --no-cache \ | ||
&& apk add tzdata --no-cache \ | ||
&& addgroup -g $GID pulsar \ | ||
&& adduser -u $UID -G pulsar -D -g '' $USER | ||
|
||
ADD bin/function-mesh-controller-manager /manager | ||
|
||
USER $USER |