Sealing Dishwasher Door
Replacement of the gasket is the best solution
The catch is that (a) replacement gaskets tend to be relatively expensive and (b) gaskets can be tough to replace. Take a look at Appliance Parts Pros or a similar site and search for your dishwasher model # to see if a replacement gasket is readily available.