80d0d2d43b
* Reduce docker images size. Install only required dependencies. * Update Dockerfile.j2
31 lines
885 B
Django/Jinja
31 lines
885 B
Django/Jinja
FROM docker-base
|
|
|
|
RUN apt-get update
|
|
|
|
COPY \
|
|
{% for deb in docker_database_debs.split(' ') -%}
|
|
debs/{{ deb }}{{' '}}
|
|
{%- endfor -%}
|
|
debs/
|
|
|
|
## Install redis-tools dependencies
|
|
## TODO: implicitly install dependencies
|
|
RUN apt-get -y install libjemalloc1
|
|
|
|
RUN dpkg -i \
|
|
{% for deb in docker_database_debs.split(' ') -%}
|
|
debs/{{ deb }}{{' '}}
|
|
{%- endfor %}
|
|
|
|
## Clean up
|
|
RUN apt-get clean -y; apt-get autoclean -y; apt-get autoremove -y
|
|
RUN rm -rf /debs
|
|
|
|
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
|
|
|
|
ENTRYPOINT service redis-server start
|