Maybe get some ant traps and place them around the shelves/bottom?

That sticky tape idea sounds good too! Never thought of that before...or the cucumber thing, useful stuff.