Use official Java image as base

The official java image basically does the same as yor first RUN command, so if you use that as base, downloads will be faster (because most people already have the java image available locally) and it shortens the dockerfile.