Hard-wall confinement of a fractional quantum Hall liquid