mirror of
https://github.com/yrutschle/sslh.git
synced 2025-04-12 15:17:14 +03:00
container: Drop privileges
A container is best served with the least amount of privileges. This also ensures we don't have to drop anything later. This does require running the container with elevated capabilities. Note, that if for whatever reason, 'root' access within the container is needed, this can easily be accomplished by running the container with `docker run --user root:root sslh` for example. Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
This commit is contained in:
parent
db5ed29fa2
commit
9dd560493a
@ -22,3 +22,5 @@ RUN apk --no-cache add libconfig pcre2
|
||||
|
||||
COPY "./container-entrypoint.sh" "/init"
|
||||
ENTRYPOINT [ "/init" ]
|
||||
|
||||
USER nobody:nogroup
|
||||
|
Loading…
x
Reference in New Issue
Block a user