The location may not be exact.
There was extensive filming done on Alcatraz Island and the prison.
The Rock is a 1996 action film that primarily takes place on Alcatraz Island and in the San Francisco Bay Area. It was directed by Michael Bay, produced by Don Simpson and Jerry Bruckheimer, and stars Sean Connery, Nicolas Cage and Ed Harris. The film is dedicated to Simpson, who died five months before its release. This was the first film on which Cage and Bruckheimer worked together.