As an alternative to taking 287 to Lander and then on to Dubois.....you could take Wyoming 135 (a truck route) at Swee****er Junction to Riverton. The road is a little bit more narrow than 287, with a few more curves, and will take you across the Rattlesnake Range. The route over the top is a little steep, but is a little different scenery than 287 to Lander. Riverton a larger town, has a Wal-Mart, a nice truck stop, relatively decent fuel prices, ect. From Riverton you can take 26 to Dubois, Togwote Pass, on into Jackson.
If you choose to stay on 287 to Lander, it’s only 26miles (Hwy 789) to Riverton!
https://en.wikipedia.org/wiki/Wyoming_Highway_135
https://en.wikipedia.org/wiki/Togwotee_Pass