sonic-buildimage/docker-database/Dockerfile
2016-05-27 13:35:44 -07:00

15 lines
491 B
Docker
Executable File

FROM docker-base
## Pre-install the fundamental packages
RUN apt-get update && apt-get -y install \
redis-server
RUN sed -ri 's/^daemonize yes$/daemonize no/' /etc/redis/redis.conf \
&& sed -ri 's/^logfile .*$/logfile ""/' /etc/redis/redis.conf \
&& sed -ri 's/^# syslog-enabled no$/syslog-enabled no/' /etc/redis/redis.conf
## Clean up
RUN apt-get clean -y; apt-get autoclean -y; apt-get autoremove -y
ENTRYPOINT service redis-server start