Confinement from gluodynamics in curved space-time