mirror of
https://github.com/tiennm99/docker-images.git
synced 2026-09-02 18:19:21 +00:00
Set default user to couchbase in Dockerfile
Added USER couchbase to ensure the container runs as the couchbase user instead of root, improving security.
This commit is contained in:
@@ -22,4 +22,6 @@ RUN export INSTALL_DONT_START_SERVER=1 && \
|
||||
|
||||
EXPOSE 8091 8092 11210 11211
|
||||
|
||||
USER couchbase
|
||||
|
||||
CMD ["couchbase-server"]
|
||||
|
||||
Reference in New Issue
Block a user