You obviously identified the solution in your problem statement, ie. to provide dry air in your process, instead of directly drawing air from the environment. If you intend to use a compressor to remove moisture from air, then you must employ the Joule-Thomson effect to cool the air from room temperature to below zero degree celcius, so that water in the air will solidify.
Things to note:
you don't want the free expansion of air to occur near the compressor, in case the ice chokes the compressor.