Finite temperature properties of the Dirac operator with bag boundary conditions