Running gpt in docker container (Fedora)

In the snap tool I can create xml with graph builder.
This graph I want to run in a docker container based on Fedora.

However, when I try to run (as a test) inside the Docker container:
gpt -h
I’m getting error: /usr/local/snap/jre/jre/lib/ext/zipfs.jar (Too many open files)

FROM a_base_fedora_image
RUN microdnf wget python unzip java-1.8.0-openjdk &&
microdnf clean all

#install - find the download link from
RUN wget -O
RUN chmod +x
RUN ./ -q

#Update all of the modules, deactivated - as it seems to hang forever when updates=0
#RUN snap --nosplash --nogui --modules --refresh --update-all

I know there is a similar example using Debian, which works - but I like to use Fedora.
I also tried to change the setting in conf file /etc/security/limits.conf, with no effect.

Check of java version inside container:
bash-5.0# java -version
openjdk version “1.8.0_275”
OpenJDK Runtime Environment (build 1.8.0_275-b01)
OpenJDK 64-Bit Server VM (build 25.275-b01, mixed mode)

Some suggestions?

This helped me to solve my issue with too many open files (-:

the trick is to run the docker image like this:
docker run --ulimit nofile=5000:5000
Then I could run:
gpt -h
without error