The bare minimum to build Switch homebrews.
docker run --rm -it -v $(pwd):/source greatwizard/devkita64devkitPro is installed in /opt/devkitPro with examples for the Switch in the examples/switch directory.
You can find several folders to demonstrate how to use various capabilities of the Switch.
To build an example, cd into its directory and run make.