Dockerfile 597 B

12345678910111213141516171819
  1. FROM docker.shemic.com/dev/python:latest
  2. MAINTAINER Rabin "https://github.com/shemic"
  3. RUN apk add --update redis git && \
  4. echo 'vm.overcommit_memory = 1' >> /etc/sysctl.conf && \
  5. echo "echo never > /sys/kernel/mm/transparent_hugepage/enabled" >> /etc/rc.local && \
  6. pip install tornado && \
  7. pip install redis && \
  8. pip install python-dateutil && \
  9. cd /usr/local && \
  10. git clone https://github.com/kumarnitin/RedisLive.git redislive && \
  11. apk del git
  12. COPY redis-live.conf /usr/local/redislive/src/redis-live.conf
  13. COPY entrypoint.sh /entrypoint.sh
  14. ENTRYPOINT ["/entrypoint.sh"]
  15. CMD ["redis"]