doughnut-wedding/docker/redis/Dockerfile

8 lines
251 B
Docker
Raw Normal View History

2017-03-29 09:24:59 -07:00
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" ]