sonic-buildimage/docker-database/Dockerfile

15 lines
491 B
Docker
Raw Normal View History

FROM docker-base
2016-03-08 13:42:20 -06:00
## Pre-install the fundamental packages
RUN apt-get update && apt-get -y install \
2016-03-08 13:42:20 -06:00
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