Functionality borrowed from the Raspberry Pi cross compile docker build file from https://github.com/sdt/docker-raspberry-pi-cross-compiler