> I hacked up some quick Dockerfiles for this particular example (httpd) and the end result is that alpine was still smaller - 8.652 MB vs. 232.8 MB
you can use this trick to strip ~100MB localedef --prefix $OSROOT --list-archive xargs localedef --prefix $OSROOT --delete-from-archive mv $OSROOT/usr/lib/locale/locale-archive $OSROOT/usr/lib/locale/locale-archive.tmpl chroot $OSROOT /usr/sbin/build-locale-archive but if you measure the size of the compressed tarball, it's not much. you can try use rpm --root $OSROOT --dbpath /var/lib/rpm --initdb then add a temporary yum line pointing to the repo cat <<EOF >> $OSROOT/etc/yum.repos.d/tmp.repo [tmp$i] name=tmp$i $line gpgcheck=0 EOF then install your packages (you don't need to have much) yum --nogpgcheck --installroot=$OSROOT --releasever=$release $yumsetopt install -y $packages if you install system-release using rpm you can eliminate "--nogpgcheck" and "$OSROOT/etc/yum.repos.d/tmp.repo" maybe you may want to make sure to install "filesystem" (with either busybox or "bash grep tar coreutils findutils sed cpio cyrus-sasl gawk vi passwd sudo") add httpd to that and let's see