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

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