fix java permissions in dockerfile instead of entrypoint