github.com/Shopify/docker@v1.13.1/contrib/mkimage/.febootstrap-minimize (about)

     1  #!/usr/bin/env bash
     2  set -e
     3  
     4  rootfsDir="$1"
     5  shift
     6  
     7  (
     8  	cd "$rootfsDir"
     9  
    10  	# effectively: febootstrap-minimize --keep-zoneinfo --keep-rpmdb --keep-services "$target"
    11  	#  locales
    12  	rm -rf usr/{{lib,share}/locale,{lib,lib64}/gconv,bin/localedef,sbin/build-locale-archive}
    13  	#  docs and man pages
    14  	rm -rf usr/share/{man,doc,info,gnome/help}
    15  	#  cracklib
    16  	rm -rf usr/share/cracklib
    17  	#  i18n
    18  	rm -rf usr/share/i18n
    19  	#  yum cache
    20  	rm -rf var/cache/yum
    21  	mkdir -p --mode=0755 var/cache/yum
    22  	#  sln
    23  	rm -rf sbin/sln
    24  	#  ldconfig
    25  	#rm -rf sbin/ldconfig
    26  	rm -rf etc/ld.so.cache var/cache/ldconfig
    27  	mkdir -p --mode=0755 var/cache/ldconfig
    28  )