Debian Package in Oracle Linux Container

Have a debian package which was currently running in Ubuntu machine as service. Trying to containerize it. Since we need Oracle JDK we are using Oracle Linux as the base image. Am unable to install the debian package inside the container.

Tried both of this

RUN /bin/bash -c "dpkg -i --force-all /path/deb_file.deb"

RUN /bin/bash -c "apt install ./path/deb_file.deb"

What am I missing?

Source: StackOverflow