chore(.): fix dockerfile, improve core/engine api