Optimized Dockerfile so it doesn't have to run apt-get update more than once and removed some unnecessary packaages.