mirror of
https://github.com/Steffo99/distributed-arcade.git
synced 2024-12-04 14:04:24 +00:00
Run container as a non-privileged user
Uses the `USER` instruction. See https://stackoverflow.com/questions/68155641/should-i-run-things-inside-a-docker-container-as-non-root-for-safety .
This commit is contained in:
parent
c18ca3cbef
commit
d34e7bf9b1
1 changed files with 1 additions and 0 deletions
|
@ -67,6 +67,7 @@ COPY --from=builder \
|
||||||
/usr/src/distributed_arcade/target/*/release/distributed_arcade \
|
/usr/src/distributed_arcade/target/*/release/distributed_arcade \
|
||||||
/usr/bin/
|
/usr/bin/
|
||||||
|
|
||||||
|
USER ${UID:-1000}:${GID:-1000}
|
||||||
ENTRYPOINT ["distributed_arcade"]
|
ENTRYPOINT ["distributed_arcade"]
|
||||||
CMD []
|
CMD []
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue