i like Bapford's idea, and he obviously knows more than i. BTW, i assume you want to seal the plastic lens to the body of the light housing.
if all else fail, 3M makes a product for that and i used it once and it worked well (different application- sealed the 3rd brake light on the vert with it. old gasket was shot-was not going to buy one). just an idea.