Merge pull request #5309 from ywk253100/180713_redis

Fix permission deny issue when Redis starting
This commit is contained in:
Daniel Jiang 2018-07-13 15:33:51 +08:00 committed by GitHub
commit bd92b165c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,12 +1,10 @@
FROM vmware/photon:1.0
RUN tdnf distro-sync -y \
&& tdnf install -y redis sudo \
&& mkdir /data \
&& chown redis:redis /data
&& tdnf install -y redis sudo
VOLUME /data
WORKDIR /data
VOLUME /var/lib/redis
WORKDIR /var/lib/redis
COPY docker-entrypoint.sh /usr/bin/
COPY redis.conf /etc/redis.conf
RUN chmod +x /usr/bin/docker-entrypoint.sh \