As promised, what I found so far: the following dockerfile yeilds a usable cross-compile environment, provided you use it with a Makefile. FROM ubuntu:xenial RUN apt-get update \ && apt-get install --yes \ vim \ build-essential \ git RUN git clone RUN git clone /build WORKDIR "/build" CMD ["/usr/bin/make", "CC=/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf-gcc" , "HelloWorld"] # Seems I need a real makefile for the above to work. For cross compiling mysensors to work, hoever, you also need to properly seed the variable in configure, for it to work correctly. This is where I left off. Sources: