Try this

  1. Pick a socket and a place to set your phone down away from the bed.
  2. Set your alarm and check which calls or alerts you want to allow through.
  3. Plug in the phone before your last activity of the evening and leave it there.