Docker container not behaving same on Debian and Ubuntu host machines

I am using a Docker environment to build my Play 2.5.x (Scala 2.11.11) server where from the server I connect to AWS RDS Oracle instance Version 12.1.0.1. As soon as I add alpn-boot jar to Java boot classpath my server can’t connect to RDS instance. I am using “ojdbc7.jar” for Oracle JDBC driver. ‘alpn’ stands for Application Layer Protocol negotiation and this jar is needed for connecting as client over HTTP/2 to a remote server (Refer: http://www.eclipse.org/jetty/documentation/current/alpn-chapter.html). This jar is needed by following Java lib: https://github.com/CleverTap/apns-http2).

Most importantly it’s very puzzling that I see different behaviour for the SAME docker container when my docker container runs on a Debian machine vs. Ubuntu machine. On Debian machine the docker container is able to connect to Oracle RDS but not on Ubuntu machine.
Below is my Dockefile (from build.sbt)
dockerCommands := Seq(
Cmd(“FROM”, “openjdk:8u212”),
Cmd(“LABEL”, “MAINTAINER=nikhil”),
Cmd(“WORKDIR”, “/opt/docker”),
Cmd(“ADD”, “opt /opt”),
Cmd(“RUN”, “chown”, “-R”, “daemon:daemon”, “.”),
Cmd(“USER”, “daemon”),
Cmd(“COPY”, “/opt/docker/conf/java.security”, “/usr/local/openjdk-8/jre/lib/security/”),
Cmd(“COPY”, “/opt/docker/lib/bcp*.jar”, “/usr/local/openjdk-8/jre/lib/ext/”),
Cmd(“COPY”, “/opt/docker/lib/alpn-boot*.jar”, “/usr/local/openjdk-8/jre/lib/ext/”),
Cmd(“RUN”, “jar xf”, “/opt/docker/lib/*assets.jar”),
Cmd(“ENTRYPOINT”, “bin/play-scala”, “-J-Xbootclasspath/p:lib/alpn-boot-8.1.13.v20181017.jar -Dmail.smtp.ssl.protocols=TLSv1.2 -Djdk.tls.rejectClientInitiatedRenegotiation=true -Djdk.tls.ephemeralDHKeySize=2048”)

NOTE: the above JVM option “-J-Xbootclasspath/p:lib/alpn-boot-8.1.13.v20181017.jar” is the one which creates problems on Ubuntu host machine but not on Debian host machine. The Docker container is built exactly same using the above dockerfile.
Host machines details:
Ubuntu 16.04.3 LTS
Debian GNU/Linux 8.9 (jessie)