first, i like dogs more than most people.
someone on a bike is like candy for a dog with a strong prey drive. it's just fun to chase.
yelling or a squirt from a water bottle -typically- works.
OC / pepper spray at 10% or better, with a shot to the snout, should work on the rest.
all that said, do what you have to to get home safe. period.