The global optimal wave packet in a boundary layer and its non-linear evolution