Do little things. Do not try to engage it with fast motion like running up to it or following it, let the dog come to you. You can start by giving the dog treats from far away and moving the treat closer to you over time. Once it is close to you try to pet it.