dazfuller
Databricks Partner

I'd probably just avoid docker entirely. I've run into loads of issues with doing things that way. It's honestly easier to use venv, virtualenv, conda etc... to create a python virtual environment and run from there. Then you're not adding a few hundred MB for the OS base image as well.

I put a demo library up online as part of a talk I did last year, you're more than welcome to use it as a reference for this method if you'd like

https://github.com/dazfuller/demo-pyspark-lib