build the apps using docker-api instead of a shell script