I have prepared docker-compose for this. And then install hellp.py from the host to the container. I am not sure if it is possible to update the launch of hello.py on the fly.
So my way:
version: '2.1' services: hello: image: hello volumes: - /home/host/app/hello.py:/hello.py
Therefore, every time you make changes to hello.py yo , you donβt have to rebuild the image only of docker-compose down and docker-compose up to reflect the changes in your .py application.
If you have several files, you can install the entire directory.
source share