Epoxy, liquid nails, double sided tape... how permanent do you want it? Since I've never had to replace a fridge gasket I'd probably go straight to the epoxy under the assumption the compressor will die long before I need that gasket to come back off.