All persons sentenced to confinement in the city prison, and all persons imprisoned therein on execution or commitment for the non-payment of fines for violations of the ordinances of the city, may be kept at hard labor during the term of their imprisonment, either within or without the prison, under such regulations as the council may prescribe.
MCL 93.2