You can keep them on rolled oat substrate or something similar and feed/water them with potato pieces. They don't draw fruit flies like other types of foods do and generally just dry up rather than rot.