2018-07-19 14:45:20 +02:00
|
|
|
FROM photon:1.0
|
2018-03-23 10:46:43 +01:00
|
|
|
|
|
|
|
RUN tdnf distro-sync -y \
|
2018-07-13 07:48:50 +02:00
|
|
|
&& tdnf install -y redis sudo
|
2018-03-23 10:46:43 +01:00
|
|
|
|
2018-07-13 07:48:50 +02:00
|
|
|
VOLUME /var/lib/redis
|
|
|
|
WORKDIR /var/lib/redis
|
2018-09-03 11:40:26 +02:00
|
|
|
COPY ./make/photon/redis/docker-entrypoint.sh /usr/bin/
|
|
|
|
COPY ./make/photon/redis/redis.conf /etc/redis.conf
|
2018-03-23 10:46:43 +01:00
|
|
|
RUN chmod +x /usr/bin/docker-entrypoint.sh \
|
|
|
|
&& chown redis:redis /etc/redis.conf
|
|
|
|
ENTRYPOINT ["docker-entrypoint.sh"]
|
|
|
|
|
|
|
|
EXPOSE 6379
|
|
|
|
CMD ["redis-server", "/etc/redis.conf"]
|