From c2cbbccebbe4a64519d0d3c92d184b2acc0b9874 Mon Sep 17 00:00:00 2001 From: Kelson Date: Wed, 4 Sep 2019 10:00:15 +0200 Subject: [PATCH] Smaller Docker base image --- travis/bionic_builder.dockerfile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/travis/bionic_builder.dockerfile b/travis/bionic_builder.dockerfile index e31c97b..cde804d 100644 --- a/travis/bionic_builder.dockerfile +++ b/travis/bionic_builder.dockerfile @@ -2,9 +2,8 @@ FROM ubuntu:bionic ENV LANG C.UTF-8 -RUN apt update -q -RUN \ - apt install -q -y --no-install-recommends \ +RUN apt update -q && \ + apt install -q -y --no-install-recommends \ # Base build tools build-essential automake libtool cmake ccache pkg-config autopoint patch \ python3-pip python3-setuptools python3-wheel git subversion wget unzip \ @@ -22,7 +21,7 @@ RUN \ # vim less grep \ && \ apt-get clean -y && \ - rm -rf /usr/share/doc/* /var/cache/debconf/* + rm -rf /var/lib/apt/lists/* /usr/share/doc/* /var/cache/debconf/* # Create user RUN useradd --create-home ci_builder