Changes Dockerfile to debian:jessie

Changes Dockerfile to debian:jessie.

Is more of a baby step from the changes on #9016, since we all couldn't agree. Pulled in @tianon's commit from that PR.