Back in the 90’s I saw a movie on late night TV. Sci fi, a base in the side of a red mountain. The people inside were doing experiments, then needed to get out. The AI I think or another person turned on them and would t let them leave. I remember one guy climbing a ladder and red lasers being shot at him.
I also remember a room of plants and them talking about the irrigation.
I did find it about 10 years ago, almost certain it had a year as the title. But it hasn’t helped me find it again so I maybe wrong.
I think you are talking about the movie Sunshine they had a room that was their oxygen room in space ship https://www.imdb.com/title/tt0448134/
Maybe the “The Andromeda Strain” (1971)?
https://www.imdb.com/title/tt0066769/
In this one scientists investigate a virus in an underground base and the movie ends as you describe. One of the scientists tries to switch off the self-destruction mechanism of the base, there is a countdown and he climbs a ladder and the AI shoots laser beams at him.