I have a Testcafe script (
script.js). I want to run this on a Chrome browser, but in the headless mode. So, I use the following command.
testcafe chrome:headless script.js
This works fine. But, now I wish to Dockerize this and run it in a container. The purpose is to get this running in Kubernetes. How can I achieve this?
I see the Testcafe Docker image, but this is just to run a Testcafe instance. It does not cater to my requirement of running this script in a Chrome Headless in a container.
(This question is different from what I am asking)
Source: Docker Questions