checkinstall
Track the local installation of a software package, and produce a binary package which can be used with a system's native package manager. More information: <http://checkinstall.izto.org>.
RUN apt-get update && \
apt-get install -y checkinstall
RUN apt-get update && \
apt-get install -y checkinstall
RUN apt-get update && \
apt-get install -y checkinstall