A county board may: cause to be erected, or otherwise provided, a suitable workhouse, in which persons convicted of offenses punishable by imprisonment in the county jail may be confined and employed; make rules and regulations for the management thereof; and contract for the use of the city workhouse when the same can satisfactorily be done.
55 ILCS 5/5-1023