2018-10-18 05:03:28 +02:00
|
|
|
FROM photon:2.0
|
2018-03-23 10:46:43 +01:00
|
|
|
|
2018-10-18 05:03:28 +02:00
|
|
|
RUN 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"]
|
2019-07-23 11:41:33 +02:00
|
|
|
USER redis
|
2018-03-23 10:46:43 +01:00
|
|
|
|
|
|
|
EXPOSE 6379
|
|
|
|
CMD ["redis-server", "/etc/redis.conf"]
|