sonic-buildimage/dockers/docker-database/Dockerfile

15 lines
689 B
Docker
Raw Normal View History

FROM docker-base
2016-03-08 13:42:20 -06:00
## Pre-install the fundamental packages
## Clean up
RUN apt-get -y install \
redis-server \
&& \
apt-get clean -y && apt-get autoclean -y && apt-get autoremove -y
2016-03-08 13:42:20 -06:00
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
ENTRYPOINT service redis-server start