This is example source for plotly save image using Selenium
Plotly rendered at the browser level, you need a web browser even if you use the documentation method
It is difficult to save images on headless server, So I try to solve it by using selenium.
make init
make docker-build
make docker-run
Then you may see plotly screenshot file in output directory.