fork 0k-charms
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

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