However, Indy does have some signs of greed. In Temple Of Doom, which takes place in 1935 before Raiders, which takes place in 1936, he wants the Shankara Stones for himself at first.
Indy does display signs of greed similar to Dobbs. Hence his phrase.... "fortune and glory". He does develop as a less greedy character, though.
Even in Last Crusade, Indy shows signs of greed when not wanting to let go of the Grail, and his Father snaps him out of it. Indy knew very well that finding and bringing back the Grail would put him as top archaeologist and make him famous beyond his wildest dreams.
The Treasure Of The Sierra Madre has been highly referenced as an influence for Indiana Jones.
The character of Indiana Jones did not come out of a vacuum. Indiana Jones is a composite/compilation character of both historical figures and fictional characters.
Many of the fictional characters George Lucas and Steven Spielberg grew up watching on film have classic literary backgrounds or pulp magazine material.