Be more selective in what we install on the production docker image.

This commit is contained in:
2017-03-08 12:34:48 +01:00
parent e443885460
commit 6adf45a94a

View File

@@ -1,7 +1,7 @@
FROM pillar_py:3.6 FROM pillar_py:3.6
RUN apt-get update && apt-get install -qyy \ RUN apt-get update && apt-get install -qyy \
-o APT::Install-Recommends=true -o APT::Install-Suggests=false \ -o APT::Install-Recommends=false -o APT::Install-Suggests=false \
git \ git \
apache2 \ apache2 \
libapache2-mod-wsgi \ libapache2-mod-wsgi \
@@ -10,9 +10,11 @@ libjpeg8 \
libtiff5 \ libtiff5 \
ffmpeg \ ffmpeg \
rsyslog logrotate \ rsyslog logrotate \
nano vim curl \ nano vim-tiny curl \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
RUN ln -s /usr/bin/vim.tiny /usr/bin/vim
ENV APACHE_RUN_USER www-data ENV APACHE_RUN_USER www-data
ENV APACHE_RUN_GROUP www-data ENV APACHE_RUN_GROUP www-data
ENV APACHE_LOG_DIR /var/log/apache2 ENV APACHE_LOG_DIR /var/log/apache2