Thank you for your question. The impurity that transfers from a dog needs to be purified from your clothes and place of prayer before you pray. The presence of a dog in itself is not a problem from a jurisprudential perspective. Perhaps you can confine it in an area in your house which you can purify afterwards if there are any places that you are sure impurities have transferred.
May you always be successful