docker: use  type instead of manually casting strings to lists