Safely update and install packages

Having the apt-get update and then install in separate RUN statements potentially means the install will fail, despite the presence of the update. One-lining the build here should fix that.