18 lines
364 B

## is a simple copy of postgres:10-alpine
FROM docker.0k.io/alpine:3.7 as common
RUN apk add redis
RUN mkdir -p /var/lib/redis
RUN chown -R redis:redis /var/lib/redis
RUN echo -e "include /etc/redis-local.conf\n" >> /etc/redis.conf
VOLUME ["/var/lib/redis"]
# Expose the ports for redis
EXPOSE 6379
USER redis
ENTRYPOINT ["redis-server", "/etc/redis.conf"]