2016-05-27 15:30:13 -05:00
|
|
|
FROM docker-base
|
2016-03-08 13:42:20 -06:00
|
|
|
|
2016-10-31 23:50:59 -05:00
|
|
|
COPY ["deps/redis-tools_*.deb", "deps/redis-server_*.deb", "/deps/"]
|
|
|
|
|
|
|
|
## Install packages
|
2016-07-26 14:01:58 -05:00
|
|
|
## Clean up
|
2016-10-31 23:50:59 -05:00
|
|
|
RUN apt-get update && \
|
|
|
|
dpkg_apt() { [ -f $1 ] && { dpkg -i $1 || apt-get -y install -f; } || return 1; }; \
|
|
|
|
dpkg_apt /deps/redis-tools_*.deb && \
|
|
|
|
dpkg_apt /deps/redis-server_*.deb && \
|
2016-07-26 14:01:58 -05:00
|
|
|
apt-get clean -y && apt-get autoclean -y && apt-get autoremove -y
|
2016-03-08 13:42:20 -06:00
|
|
|
|
2016-11-11 19:14:41 -06:00
|
|
|
RUN sed -ri 's/^daemonize yes$/daemonize no/; \
|
|
|
|
s/^logfile .*$/logfile ""/; \
|
|
|
|
s/^# syslog-enabled no$/syslog-enabled no/; \
|
|
|
|
s/^# unixsocket/unixsocket/ \
|
|
|
|
' /etc/redis/redis.conf
|
2016-05-27 15:30:13 -05:00
|
|
|
|
|
|
|
ENTRYPOINT service redis-server start
|