If survival is the key then environment will play a big role in morality. Survival also incorporates status, as this helps our genes survive.
In harsh environments, from Afghanistan (to this day) to Steppes Nomads and the Scottish Highlands (historically), you often saw strong honour codes develop.
This is because you had to rely on others for survival, so reputation was important and anything that made your family/tribe/clan lose honour was a serious problem.
Things like honour killing or vendettas that make no sense to us today, had/have a certain type of logic in these cultures. If you let people within your tribe compromise your honour, or let outsiders take advantage then you couldn't be taken seriously and people couldn't trust you which could be a death sentence.
A modern 'live and let live' approach does not translate, just as an unbending honour approach doesn't translate well to the modern, urban world.
So while we do have moral instincts, how they develop is dictated by environment and how this impacts how we gain status. In some environments our empathy and cooperative instincts develop most as these gain status, and in others our in group loyalty and willingness to punish transgressors gain status.
There are obviously other factors in play too.