Good idea for some of those cheap compressors that the motor dies off on you. Author says its around $10 in parts to do, I am thinking closer to $20 if you are unable to re-use parts already on the compressor.
https://www.instructables.com/id/How-to-Make-a-Portable-Air-Tank-From-a-Broken-Air-/