Dockerfile: remove production code.

And add apt-get clean and clear temp files to make the container smaller.