All you have to do is prepare a regular dog bath, but use dish soap instead of shampoo for the lather.
The soap destroys the fleas' exoskeletons, killing them within minutes.
Once you're done, you can give your pet a proper bath with good shampoo to keep their skin from drying out.