After I wrote what the problem is, your response gets even more confusing: why would a Linux container require a chromdriver.exe, and why would a java application need a requirements.txt?
Please google how to use Selenium inside a container. There are dozens of blog post that discuss solutions to this.
The same problem would happen, if you run your build on a headless Linux server (as in no desktop installed on the system). There is not much we can do from the Docker perspective to help you.