https://bugzilla.redhat.com/show_bug.cgi?id=1335344
--- Comment #8 from Michal Srb msrb@redhat.com --- I think this is the problem:
Step 4 : RUN dnf -y update --skip-broken ; dnf -y install maven git bzip2 rpm-build && dnf clean all ---> Running in 5997e11ebb4e Last metadata expiration check performed 0:00:08 ago on Thu May 12 13:42:21 2016. No match for argument: --skip-broken
So you don't really update packages in the image, and when you later install firefox, it will also update nss package, because firefox depends on it. And because of bug#1332456, JDK sometimes throws java.lang.InternalError exception, if nss version doesn't match JDK's expectations.
Long story short, replacing following line in your Dockerfile: RUN dnf -y update --skip-broken ; dnf -y install maven git bzip2 rpm-build firefox && dnf clean all with this line: RUN dnf -y update && dnf -y install maven git bzip2 rpm-build && dnf clean all should fix the issue.