Indeed, hence the numerous cheats in the playbook to make things work together.
Still need some digging to figure out the perfect workflow; Dockerfile that runs some git clone vs. add of local code vs. deploy via ansible - the ansible approach still provides the flexibility to have a customized container per dev that includes one custom set of ssh keys for example to fetch code from github or alike...
One thought I had was that you could get some of the benefits of both by using a large number or "ansible" commands in a Dockerfile rather than using a single ansible-playbook command to kick off the process. You'd most of the organization features that ansible gives (like roles etc), but you would get most of the docker features.