How can I minimize the discourse Docker image size?

Aside from postgres+redis (which I have a proposal to provide above), some of the larger libraries installed there are for compiling gems that Discourse uses. There is currently no good and simple way to remove those libraries right now.