mirror of
https://github.com/goharbor/harbor.git
synced 2025-01-09 09:27:42 +01:00
Fix permission deny issue when Redis starting
This commit changes the ownership of directory that Redis uses to user redis when starting up
This commit is contained in:
parent
f7a29363ed
commit
e0f2a3d5ce
@ -1,12 +1,10 @@
|
|||||||
FROM vmware/photon:1.0
|
FROM vmware/photon:1.0
|
||||||
|
|
||||||
RUN tdnf distro-sync -y \
|
RUN tdnf distro-sync -y \
|
||||||
&& tdnf install -y redis sudo \
|
&& tdnf install -y redis sudo
|
||||||
&& mkdir /data \
|
|
||||||
&& chown redis:redis /data
|
|
||||||
|
|
||||||
VOLUME /data
|
VOLUME /var/lib/redis
|
||||||
WORKDIR /data
|
WORKDIR /var/lib/redis
|
||||||
COPY docker-entrypoint.sh /usr/bin/
|
COPY docker-entrypoint.sh /usr/bin/
|
||||||
COPY redis.conf /etc/redis.conf
|
COPY redis.conf /etc/redis.conf
|
||||||
RUN chmod +x /usr/bin/docker-entrypoint.sh \
|
RUN chmod +x /usr/bin/docker-entrypoint.sh \
|
||||||
|
Loading…
Reference in New Issue
Block a user