mirror of
https://github.com/schollz/croc.git
synced 2025-10-10 21:01:02 +02:00
Use unprivileged user in docker
See https://americanexpress.io/do-not-run-dockerized-applications-as-root/ and https://engineering.bitnami.com/articles/why-non-root-containers-are-important-for-security.html
This commit is contained in:
parent
5b0883e1fe
commit
968950f783
1 changed files with 1 additions and 0 deletions
|
@ -11,5 +11,6 @@ EXPOSE 9011
|
|||
EXPOSE 9012
|
||||
EXPOSE 9013
|
||||
COPY --from=builder /go/croc/croc /go/croc/croc-entrypoint.sh /
|
||||
USER nobody
|
||||
ENTRYPOINT ["/croc-entrypoint.sh"]
|
||||
CMD ["relay"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue