From 077d70f7176f7bf9b450bdd8ec82e43667fd72d2 Mon Sep 17 00:00:00 2001 From: Mike Dillon Date: Sat, 7 Mar 2015 21:42:30 -0800 Subject: [PATCH 1/2] Add missing --no-install-recommends to apt-get install commands --- 8.0/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/8.0/Dockerfile b/8.0/Dockerfile index 5ac45bb..acad1cd 100644 --- a/8.0/Dockerfile +++ b/8.0/Dockerfile @@ -4,7 +4,7 @@ MAINTAINER Odoo S.A. # Install some deps, lessc and less-plugin-clean-css, and wkhtmltopdf RUN set -x; \ apt-get update \ - && apt-get install -y \ + && apt-get install -y --no-install-recommends \ adduser \ ca-certificates \ curl \ @@ -16,7 +16,7 @@ RUN set -x; \ && curl -o wkhtmltox.deb -SL http://nightly.odoo.com/extra/wkhtmltox-0.12.1.2_linux-jessie-amd64.deb \ && echo '40e8b906de658a2221b15e4e8cd82565a47d7ee8 wkhtmltox.deb' | sha1sum -c - \ && dpkg --force-depends -i wkhtmltox.deb \ - && apt-get -y install -f \ + && apt-get -y install -f --no-install-recommends \ && rm -rf /var/lib/apt/lists/* wkhtmltox.deb # Install Odoo From 6e4107c1a7ff2c6764ebb6335cf5dceec81c2c68 Mon Sep 17 00:00:00 2001 From: Mike Dillon Date: Sat, 7 Mar 2015 21:44:13 -0800 Subject: [PATCH 2/2] Remove npm after installing lessc --- 8.0/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/8.0/Dockerfile b/8.0/Dockerfile index acad1cd..0f5aa87 100644 --- a/8.0/Dockerfile +++ b/8.0/Dockerfile @@ -5,9 +5,9 @@ MAINTAINER Odoo S.A. RUN set -x; \ apt-get update \ && apt-get install -y --no-install-recommends \ - adduser \ ca-certificates \ curl \ + nodejs \ npm \ python-support \ python-pyinotify \ @@ -17,6 +17,7 @@ RUN set -x; \ && echo '40e8b906de658a2221b15e4e8cd82565a47d7ee8 wkhtmltox.deb' | sha1sum -c - \ && dpkg --force-depends -i wkhtmltox.deb \ && apt-get -y install -f --no-install-recommends \ + && apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false -o APT::AutoRemove::SuggestsImportant=false npm \ && rm -rf /var/lib/apt/lists/* wkhtmltox.deb # Install Odoo