Dissolve the active dry yeast and sugar in warm water. Let it sit for about five minutes until frothy. Combine flour, salt, yeast mixture, and vegetable oil in a bowl. Knead for about ten minutes until smooth and elastic. Let it rise in a greased bowl for about one hour until doubled in size.
Cook thick-cut bacon in a skillet until crispy. Remove and set aside. In the same skillet, cook sliced onions on low heat for about 45 minutes until caramelized.
Whisk together sour cream, heavy cream, eggs, caraway seeds, thyme, salt, and pepper until smooth.
Preheat oven to 375°F (190°C). Roll out the dough to fit the pie dish. Layer caramelized onions and crumbled bacon in the crust. Pour custard mixture over. Bake for about 60 minutes until golden brown.