The bible is a mix of myth, like the Creation, the Garden, Babel, Noah, and as archaeological evidence suggests, likely the Egyptian captivity and Moses; and history some of which is close enough and some of which is unreliable or simply untrue; and good stories, like Daniel in the Lions' den and the Writing on the Wall (and, offstage, Susannah and the Elders); and the religious politics of the day, like Isaiah &c, devising the explanation that their god allowed the Babylonian captivity after he'd promised them all the land from the Nile to the Euphrates, because it was all his worshipers' own fault; and it contains laws, rituals and priestly practice, songs, a play (Job), wisdom (Ecclesiastes, Proverbs), and much else.
It certainly contains its share of Bronze Age morality ─ invasive wars, massacres of populations and even animals, mass rape, slavery, women as property, slaughter of enemy children, religious intolerance to the extreme, and of course human sacrifices.