In relation to your docker file, I can confirm that this worked a treat..
python:
image: python:3.8.13-slim-bullseye
volumes:
- type: bind
source: ./pythonsource
target: /usr/src/myapp
entrypoint: /bin/bash
networks:
- zitiblue
- zitired
What I did notice is that after running the following command
docker-compose up -d
I needed to run the following to restart it
docker run -d -it python:3.8.13-slim-bullseye
I am not sure why it stopped automatically stopped.. I could not work that out.
While I was hoping that this is all I needed to get an end to end test working.. I came up with another unexpected issue with installing the Python SDK in the container.
For some reason, installing the Python SDK missed making a copy of the lib folder..