Duality in the triangulated category of singularities