From f7cdf9c9b6e6c53c538dc2aab11d549bc2efcb23 Mon Sep 17 00:00:00 2001 From: ViViDboarder Date: Wed, 15 Nov 2017 14:13:04 -0800 Subject: [PATCH] Speed up builds by installing less packages --- Dockerfile.raspbian | 4 ++-- Dockerfile.ubuntu | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Dockerfile.raspbian b/Dockerfile.raspbian index f91a65e..651bf58 100644 --- a/Dockerfile.raspbian +++ b/Dockerfile.raspbian @@ -4,8 +4,8 @@ MAINTAINER ViViDboarder RUN [ "cross-build-start" ] RUN apt-get update \ - && apt-get install -y duplicity python-setuptools ncftp cron \ - python-boto python-swiftclient python-pexpect openssh-client \ + && apt-get install -y --no-install-recommends duplicity python-setuptools \ + ncftp cron python-boto python-swiftclient python-pexpect openssh-client \ && rm -rf /var/apt/lists/* RUN [ "cross-build-end" ] diff --git a/Dockerfile.ubuntu b/Dockerfile.ubuntu index cf368dc..0485701 100644 --- a/Dockerfile.ubuntu +++ b/Dockerfile.ubuntu @@ -2,10 +2,12 @@ FROM ubuntu:xenial MAINTAINER ViViDboarder RUN apt-get update \ - && apt-get install -y software-properties-common python-software-properties \ + && apt-get install -y --no-install-recommends \ + software-properties-common python-software-properties \ && add-apt-repository ppa:duplicity-team/ppa \ && apt-get update \ - && apt-get install -y duplicity python-setuptools ncftp \ + && apt-get install -y --no-install-recommends \ + duplicity python-setuptools ncftp \ python-swiftclient python-pip python-pexpect openssh-client \ && pip install boto \ && apt-get autoremove -y python-pip \