ZOOKEEPER-4616: Upgrade docker image to resolve CVEs
The current docker image `maven:3.6.3-jdk-8` has many critical security issues.
maven3.6.3-jdk-8 › dpkg1.19.7 has [CVE-2022-1664](https://www.cve.org/CVERecord?id=CVE-2022-1664)
maven3.6.3-jdk-8 › openssl1.1.1d-0+deb10u6 has [CVE-2021-3711](https://www.cve.org/CVERecord?id=CVE-2021-3711)
maven3.6.3-jdk-8 › gzip1.9-3 has [CVE-2022-1271](https://www.cve.org/CVERecord?id=CVE-2022-1271)
We need to upgrade the docker base image to version `maven:3.8.4-jdk-8`
See [ZOOKEEPER-4616](https://issues.apache.org/jira/browse/ZOOKEEPER-4616) for full details.
Author: chenhang <chenhang@apache.org>
Reviewers: Enrico Olivelli <eolivelli@apache.org>
Closes #1927 from hangc0276/chenhang/ZOOKEEPER-4616