When you design your enclosure just keep in mind that the compressor is air cooled so make sure it can still breath, I have seen them seize through over zealous sound deadening.
Good point. One of the more interesting DIY designs I’m looking at includes ventilation supplemented by a fan, along with some pretty clever sound baffling on the inlet and outlet vents.