If you go into System Preferences and disable "Displays have separate Spaces" it'll keep the dock and app switcher on your primary display.

I'm not a Spaces user so not sure what impact this has outside of the dock behaviour.