fix(docker): prevent privilege regain after bootstrap
Co-authored-by: yu-xin-c <175149126+yu-xin-c@users.noreply.github.com>
This commit is contained in:
1 parent
3741ecda0b
commit
b571d3b9ff
3 files changed
+56
-8
No files matched your search
@@ -13,6 +13,10 @@ x-common-config: &common-config
|
||||
- CHOWN
|
||||
- SETGID
|
||||
- SETUID
|
||||
# Prevent the non-root process from regaining capabilities through setuid
|
||||
# binaries or file capabilities left inside the container image.
|
||||
security_opt:
|
||||
- no-new-privileges:true
|
||||
|
||||
services:
|
||||
nanobot-gateway:
|
||||
|
||||
Reference in new issue
Block a user