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
|
2019-08-01 10:02:08 +02:00
|
|
|
COPY ./make/photon/redis/docker-healthcheck /usr/bin/
|
2018-09-03 11:40:26 +02:00
|
|
|
COPY ./make/photon/redis/redis.conf /etc/redis.conf
|
2019-08-01 10:02:08 +02:00
|
|
|
RUN chmod +x /usr/bin/docker-healthcheck \
|
2018-03-23 10:46:43 +01:00
|
|
|
&& chown redis:redis /etc/redis.conf
|
|
|
|
|
2019-08-01 10:02:08 +02:00
|
|
|
HEALTHCHECK CMD ["docker-healthcheck"]
|
|
|
|
USER redis
|
2018-03-23 10:46:43 +01:00
|
|
|
EXPOSE 6379
|
|
|
|
CMD ["redis-server", "/etc/redis.conf"]
|