Run Bokeh Python script in background

I’m running Bokeh in a Docker container, and I want to run it in a headless fashion - just to generate png images on a continual basis.

Right now my entry point looks like this:
/usr/local/bin/bokeh serve --show /usr/local/

How do I set up the server to run the script as soon as it starts? Or am I better off running the Python script natively and using Bokeh as a library?

@louloizides The Bokeh server is, first and foremost, a web server. If there are not any user connections that will be made, then does not sound necessary or suitable for what you describe. It sounds like you need a plain Python script that runs a loop, calling Bokeh functions.