Seal any cracks around windows, doors, or anywhere else they could get in. To make a clear ant-proof seal, use transparent silicone caulk on the outer walls. Not only does this keep ants out, but it also keeps food fresh for a long.