Update Dockerfile to match changes in java/dockerfile:

1. JAVA_HOME enviromental variable is now declared in java/dockerfile.
2. Perform an `apt-get update` prior to installing any dependencies.