docker-32bit / debian

Debian i386 (32bit) image (Moved to: https://gitlab.com/docker-32bit/debian)
GNU General Public License v3.0
50 stars 24 forks source link

Reduce disk usage #5

Open guyou opened 8 years ago

guyou commented 8 years ago

Hi,

I would suggest a small optimization. It is possible to avoid creating the debian.tgz by simply piping the tar creation and the docker import:

tar cz -C $chroot_dir . | docker import - $docker_image

Hope that help.

dashohoxha commented 8 years ago

I think that it is space+time optimization vs code readability. Anyway, if you have tested this and you submit a patch (or pull request) I can merge it.