Web while not the cheapest method, sprinkling ground cinnamon along the perimeter of your garden (or any surface area, for that matter) will repel ants, but not kill.
Diy building a raised vegetable garden
Diy vertical garden vegetables
Easy diy container vegetable garden