mirror of https://github.com/docker/docs.git
reuse the febootstrap-minimize from rinse
Docker-DCO-1.1-Signed-off-by: Sam Bailey <sam@thatsamguy.com> (github: thatsamguy)
This commit is contained in:
parent
05e9574cf3
commit
d9885abdc4
|
@ -13,7 +13,7 @@ shift
|
||||||
# docs
|
# docs
|
||||||
rm -rf usr/share/{man,doc,info,gnome/help}
|
rm -rf usr/share/{man,doc,info,gnome/help}
|
||||||
# cracklib
|
# cracklib
|
||||||
#rm -rf usr/share/cracklib
|
rm -rf usr/share/cracklib
|
||||||
# i18n
|
# i18n
|
||||||
rm -rf usr/share/i18n
|
rm -rf usr/share/i18n
|
||||||
# yum cache
|
# yum cache
|
||||||
|
|
|
@ -53,25 +53,7 @@ fi
|
||||||
--root "$rootfsDir"
|
--root "$rootfsDir"
|
||||||
)
|
)
|
||||||
|
|
||||||
(
|
"$(dirname "$BASH_SOURCE")/.febootstrap-minimize" "$rootfsDir"
|
||||||
# Clean cruft to reduce image size - stolen and modifed from .febootstrap-minimize
|
|
||||||
set -x
|
|
||||||
cd "$rootfsDir"
|
|
||||||
# locales
|
|
||||||
rm -rf usr/{{lib,share}/locale,{lib,lib64}/gconv,bin/localedef,sbin/build-locale-archive}
|
|
||||||
# docs
|
|
||||||
rm -rf usr/share/{man,doc,info,gnome/help}
|
|
||||||
# cracklib
|
|
||||||
rm -rf usr/share/cracklib
|
|
||||||
# i18n
|
|
||||||
rm -rf usr/share/i18n
|
|
||||||
# sln
|
|
||||||
rm -rf sbin/sln
|
|
||||||
# ldconfig
|
|
||||||
#rm -rf sbin/ldconfig
|
|
||||||
rm -rf etc/ld.so.cache var/cache/ldconfig
|
|
||||||
mkdir -p --mode=0755 var/cache/ldconfig
|
|
||||||
)
|
|
||||||
|
|
||||||
if [ -d "$rootfsDir/etc/sysconfig" ]; then
|
if [ -d "$rootfsDir/etc/sysconfig" ]; then
|
||||||
# allow networking init scripts inside the container to work without extra steps
|
# allow networking init scripts inside the container to work without extra steps
|
||||||
|
|
Loading…
Reference in New Issue