Upgrade iPhone 5 from iOS 7.0.4 to iOS 7.1.2
Apple have stopped signing any iOS 7 for any device that can run iOS 8.

As far as I am aware, you have no other choices than to stay on 7.0.4 or go to 8.0.2