From 3a23bcdbf05a35fd45e21a0327814809ecc9d897 Mon Sep 17 00:00:00 2001 From: Nick Thomas Date: Fri, 10 Feb 2017 16:37:59 +0000 Subject: [PATCH 1/2] Remove stretch from the list of apt sources after installing git --- scripts/install-essentials | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/install-essentials b/scripts/install-essentials index eeaaa52..83c2f1d 100755 --- a/scripts/install-essentials +++ b/scripts/install-essentials @@ -12,10 +12,13 @@ apt-get install -y \ logrotate python-docutils pkg-config cmake nodejs \ libkrb5-dev postgresql-client mysql-client unzip \ -echo deb http://httpredir.debian.org/debian stretch main > /etc/apt/sources.list +echo deb http://httpredir.debian.org/debian stretch main > /etc/apt/sources.list.d/stretch.list apt-get update -yqqq apt-get install -yqq --force-yes git +rm /etc/apt/sources.list.d/stretch.list +apt-get update -yqqq + # Set UTF-8 # http://stackoverflow.com/a/3182519/2137281 LOC=$'LC_ALL=en_US.UTF-8\nLANG=en_US.UTF-8' From 0108ade6968c3da862a93dfc02b847043b53e47a Mon Sep 17 00:00:00 2001 From: Nick Thomas Date: Fri, 10 Feb 2017 16:39:23 +0000 Subject: [PATCH 2/2] Remove cached .deb files to reduce image size --- scripts/install-essentials | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/install-essentials b/scripts/install-essentials index 83c2f1d..77c6c61 100755 --- a/scripts/install-essentials +++ b/scripts/install-essentials @@ -19,6 +19,8 @@ apt-get install -yqq --force-yes git rm /etc/apt/sources.list.d/stretch.list apt-get update -yqqq +apt-get clean -yqq + # Set UTF-8 # http://stackoverflow.com/a/3182519/2137281 LOC=$'LC_ALL=en_US.UTF-8\nLANG=en_US.UTF-8'