Thanks for this I found it really helpful. One thing to note, in the Docker file the .py is copied on before the requirements and pip install. The result will be that every time the python file is changed and you debug docker will rebuild the image. Docker has some very clever caching, so copy the python file last!
Thanks for this I found it really helpful. One thing to note, in the Docker file the .py is copied on before the requirements and pip install. The result will be that every time the python file is changed and you debug docker will rebuild the image. Docker has some very clever caching, so copy the python file last!
Ah that's a good tip! Thanks - I've added your suggestion to the example
Dockerfile
.