FROM redis:3 COPY ./redis.conf /usr/local/etc/redis/redis.conf RUN mkdir /var/lib/redis && \ mkdir /var/log/redis && \ chown redis.redis /var/lib/redis && \ chown redis.redis /var/log/redis CMD [ "redis-server", "/usr/local/etc/redis/redis.conf" ]