apt-get autoremove and clean before container export
cleanup heredocs