From f85648011313c535f708062f352e6670432c7c08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Sun, 1 Apr 2018 21:49:46 +0300 Subject: [PATCH] Clean up properly after installing packages --- Dockerfile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index c161f09..336b878 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,9 @@ FROM ubuntu:16.04 RUN apt-get update -qq && apt-get install -qqy \ git wget bzip2 file unzip libtool pkg-config cmake build-essential \ - automake yasm gettext autopoint vim python git-svn ninja-build + automake yasm gettext autopoint vim python git-svn ninja-build && \ + apt-get clean -y && \ + rm -rf /var/lib/apt/lists/* RUN git config --global user.name "LLVM MinGW" && \ @@ -30,7 +32,9 @@ RUN ./install-wrappers.sh $TOOLCHAIN_PREFIX RUN apt-get update -qq && \ apt-get install -qqy binutils-mingw-w64-x86-64 && \ cp /usr/bin/x86_64-w64-mingw32-windres $TOOLCHAIN_PREFIX/bin/x86_64-w64-mingw32-windresreal && \ - apt-get remove -qqy binutils-mingw-w64-x86-64 + apt-get remove -qqy binutils-mingw-w64-x86-64 && \ + apt-get clean -y && \ + rm -rf /var/lib/apt/lists/* # Build MinGW-w64 COPY build-mingw-w64.sh .