[gimp/wip/schumaml/tune-prepare-stage: 51/55] build: use apt-get clean to reduce image size



commit 5c157e61d260f706a57a928f877153472e8382a3
Author: Michael Schumacher <schumaml gmx de>
Date:   Sun May 31 09:27:29 2020 +0200

    build: use apt-get clean to reduce image size
    
    TODO: do the same for the downloaded crossroads packages

 .gitlab-ci.yml | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index fc28f545b6..f475aeb8c4 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -11,7 +11,7 @@ variables:
   INSTALL_DIR: "_install"
   INSTALL_PREFIX: "${CI_PROJECT_DIR}/${INSTALL_DIR}"
   APT_CACHE: "${CI_PROJECT_DIR}/apt-cache"
-  BUILD_IMAGE: "$CI_REGISTRY_IMAGE:build-debian-latest"
+  BUILD_IMAGE: "$CI_REGISTRY_IMAGE:build-debian-latest-tuning"
   BUILD_IMAGE_WIN64: "$CI_REGISTRY_IMAGE:build-win64-latest-tuning"
   BUILD_IMAGE_WIN32: "$CI_REGISTRY_IMAGE:build-win32-latest-tuning"
 
@@ -32,6 +32,7 @@ build-image:
     - echo "RUN apt-get update" >> Dockerfile
     - echo "RUN apt-get install -y --no-install-recommends \\" >> Dockerfile
     - echo "at-spi2-core build-essential desktop-file-utils ffmpeg ghostscript git glib-networking 
gobject-introspection graphviz-dev gtk-doc-tools hicolor-icon-theme intltool iso-codes libappstream-glib-dev 
libbz2-dev libdbus-glib-1-dev libexif-dev libgexiv2-dev libgirepository1.0-dev libgtk-3-bin libgtk-3-dev 
libgudev-1.0-dev libjson-glib-dev liblcms2-dev liblzma-dev libmng-dev libmypaint-dev libopenexr-dev 
libpoppler-glib-dev libraw-dev libraw19 librsvg2-dev libspiro-dev libsuitesparse-dev libtiff-dev libtiff5-dev 
libtool libumfpack5 libwebp-dev libwmf-dev libxmu-dev libxpm-dev luajit meson mypaint-brushes poppler-data 
python3 valac xauth xvfb" >> Dockerfile
+    - echo 'RUN apt-get clean' >> Dockerfile
 
     - /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination 
$BUILD_IMAGE --cache=true --cache-ttl=120h
 
@@ -74,6 +75,7 @@ build-image-win64:
     - echo "g++-mingw-w64-x86-64 gcc-mingw-w64-x86-64" >> Dockerfile
 
     - echo 'RUN crossroad w64 gimp --run="crossroad_deps_install.sh"' >> Dockerfile
+    - echo 'RUN apt-get clean' >> Dockerfile
 
     - /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination 
$BUILD_IMAGE_WIN64 --cache=true --cache-ttl=120h
 
@@ -84,6 +86,7 @@ build-image-win32:
     - echo "g++-mingw-w64-i686 gcc-mingw-w64-i686" >> Dockerfile
 
     - echo 'RUN crossroad w32 gimp --run="crossroad_deps_install.sh"' >> Dockerfile
+    - echo 'RUN apt-get clean' >> Dockerfile
 
     - /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination 
$BUILD_IMAGE_WIN32 --cache=true --cache-ttl=120h
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]