FROM 192.168.4.4/baseimg/centos:201803291115

MAINTAINER kalvin.dai <dekun.dai@quantgroup.cn>

# Install redis
RUN yum install epel-release -y && \
    yum update -y && \
    yum install redis -y && \
    yum clean all

# User
USER root

# Copy config redis
WORKDIR /home/quant_group/redis
ADD etc/*conf ./conf/
VOLUME ["/var/lib/redis"]
ENV HOME /var/lib/redis
EXPOSE 6379 6380 6381 6382 6383

COPY docker-entrypoint.sh .
RUN chmod +x ./docker-entrypoint.sh
CMD ./docker-entrypoint.sh