I concur that Neukirch is a good candidate, so instead of starting with a new recommendation (I'll come back to that later), let me instead disagree with Felipe Voloch's contention that algebraic number theory is all about rings of dimension one (though certainly he had a narrower scope of algebraic number theory in mind than I'm about to describe). So a quick run-down of the fundamental, and reasonably beginner grad-level, commutative algebra I've run into doing algebraic number theory, with the caveat that I've never been very good at figuring out where commutative algebra ends and some of these other things begin (in particular, commutativity tends to fade away somewhat silently):
- Basic stuff: As mentioned above. Dedekind rings, local rings, valuation theory, integral closures, PIDs/UFDs, etc.
- Arithmetic Geometry: Okay, okay, this one's cheating given the context of the question. But still, you can't get too far in algebraic number theory before you run into an elliptic curve, and then you'll want to know something about its function field, and so on.
- Homological Algebra: Free and projective resolutions of groups, most poignantly with the goal of getting to Galois cohomology, which is a natural language for much of algebraic number theory. In particular, there's the cohomological version of class field theory, Cornell and Rosen's treatise on getting much of algebraic number theory cohomologically, Tate-Shafarevich groups, local-global obstructions, etc.
- Topological Rings/Fields: e.g., rings of adeles. More generally, direct/inverse limit constructions, especially to get cohomology of profinite groups via limits.
- Fancier Stuff: Of which there is probably no end. But I'll just mention that, e.g., Wiles's proof of FLT uses universal deformation rings, complete intersection rings, Gorenstein rings, etc. (Though some of this was subsequently tidied up a little.)
My recommendation would be to start with Neukirch's Algebraic Number Theory for roughly the first bullet point, and as the follow-up book, to go to Manin and Panchishkin's Introduction to Modern Number Theory for basically everything else in the list (with a hat tip to Lorenzini's An Introduction to Arithmetic Geometry as mentioned in the comments). For books that then make heavy use of this material, there's Neukirch et al's follow-up book Cohomology of Number Fields, and Georges Gras's Class Field Theory.