Removed apt-get upgrade (causing problems) and added in DEBIAN_FRONTEND environment to reduce warnings in build