gitbucket / gitbucket-docker

Docker image of GitBucket which is an open source GitHub server powered by Scala
https://github.com/gitbucket/gitbucket-docker/pkgs/container/gitbucket
58 stars 23 forks source link

The gitbucket service should be executed by non-root user. #15

Open kanekoh opened 4 years ago

kanekoh commented 4 years ago

If the service doesn't require privileges, it is a good way to use USER to change to non-root user(1). That makes easy to run on Kubernetes and OpenShift(2).

(1) https://docs.docker.com/develop/develop-images/dockerfile_best-practices/ (2) https://docs.okd.io/latest/creating_images/guidelines.html#openshift-specific-guidelines