mirror of
https://github.com/goharbor/harbor
synced 2025-05-09 19:01:55 +00:00
Running redis using non-root user
redis running with user redis Signed-off-by: Qian Deng <dengq@vmware.com>
This commit is contained in:
parent
904f04fac1
commit
e62a9f1e18
@ -9,6 +9,7 @@ COPY ./make/photon/redis/redis.conf /etc/redis.conf
|
||||
RUN chmod +x /usr/bin/docker-entrypoint.sh \
|
||||
&& chown redis:redis /etc/redis.conf
|
||||
ENTRYPOINT ["docker-entrypoint.sh"]
|
||||
USER redis
|
||||
|
||||
EXPOSE 6379
|
||||
CMD ["redis-server", "/etc/redis.conf"]
|
||||
|
Loading…
x
Reference in New Issue
Block a user