Reduce the size of the image

By combining all of the steps to download the source, build it, and clean up afterward into a single RUN command, and by adding a few extra cleanup steps and CMake options, I reduced the size of this image from about 3 GB to about 500 MB, with no loss of functionality.