Scaling of the random-field Ising model at zero temperature