2019-11-12 04:20:54 +01:00
|
|
|
ARG harbor_base_image_version
|
2019-11-11 11:56:36 +01:00
|
|
|
FROM goharbor/harbor-redis-base:${harbor_base_image_version}
|
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"]
|