doughnut-wedding/docker/redis/Dockerfile

8 lines
251 B
Docker

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" ]