You can use Docker volumes to mount directories from the host system (Pi) into your Docker container. These directories are available both on the host and inside the container. Have a look here (first half of the comment):
This way you could actually do some steps inside and some outside the container.