Speed up builds by installing less packages

This commit is contained in:
ViViDboarder 2017-11-15 14:13:04 -08:00
parent 5c1427683c
commit f7cdf9c9b6
2 changed files with 6 additions and 4 deletions

View File

@ -4,8 +4,8 @@ MAINTAINER ViViDboarder <vividboarder@gmail.com>
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" ]

View File

@ -2,10 +2,12 @@ FROM ubuntu:xenial
MAINTAINER ViViDboarder <vividboarder@gmail.com>
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 \