With a cold finger cooled in liquid nitrogen bath. Maybe a dry ice/propanol bath could do as well, but I'd recommend use of liquid nitrogen to make it solid.
The problem is you'll need storage the ampoule on dry ice or the chlorine will boil and could blow up the ampoule. Unless it's a very small amount in a rather large vacuumed ampoule.