Follow the Raspberry Pi instructions to format the card, install NOOBS Lite & Raspbian Lite.
https://projects.raspberrypi.org/en/projects/raspberry-pi-setting-up/3
sudo -i
apt-get install software-properties-common
apt-get update
apt-get install -y apparmor-utils apt-transport-https avahi-daemon ca-certificates curl dbus jq network-manager socat
curl -fsSL get.docker.com | sh
curl -sL "https://raw.githubusercontent.com/home-assistant/hassio-installer/master/hassio_install.sh" | bash -s -- -m raspberrypi3
Modified from
and