Maybe you can install the module in editable mode and declare it as a volume when building image:
RUN pip3 install -e /module
VOLUME ['/module']
Then bind it to host source dir:
docker run -v /host/path/to/module:/module ...
Maybe you can install the module in editable mode and declare it as a volume when building image:
RUN pip3 install -e /module
VOLUME ['/module']
Then bind it to host source dir:
docker run -v /host/path/to/module:/module ...