I’ve built an image and put it in dockerhub This image runs few Flask python services out of which one is running asynchronously which is basically a process split in two parallel threads. One is a rest api and the other is a script which interacts with another API.
Running this image with docker-compose up only starts one of these threads starts, in particular the rest api. The background job which is being called from the main rest api function is not getting invoked.
How can I fix this behavior?