There such small latches that can be screwed up to cabinets wall and door.
There two types: magnetic ones and mechanical (with a spring).
Like this (magnetic):
And this:
Magnetic ones seem to be very strong and seems don't lose strength over time. And prices are approximately the same (in general). So, why would I prefer one before the other?