Most dogs are barks but no bite.
I usually slow down before the encounter and accelerate quickly when dog is about 10 ft. away,
surprise acceleration and sustained speed, usually dog would lose interest when it can't catch up quickly.
A good squirt from water bottle is usually a good deterrent, aiming can be difficult if you have weird steering arrangement.