Chnage Docker app template to new addApplication interface.
Now we pass a list of ports and build option.
Result should be a map of ports.