@bbinet sure, i have this docker file:
i’m installing mono, but you don’t have to off course… 
FROM resin/raspberrypi3-debian:stretch
RUN apt-get update && apt-get install -y curl wget build-essential mono-complete mono-vbnc libunwind8 gettext && rm -rf /var/lib/apt/lists/*
ADD . /app
WORKDIR /app
RUN ./build.sh raspberrypi3 '2.2.0+rev1.prod' mod_rs485
CMD ./run.sh 'mod_rs485_raspberrypi3_2.2.0+rev1.prod'
Then, i’m using the build.sh thats used here: https://github.com/resin-io-playground/kernel-module-build
And my run.sh looks like this:
#!/bin/bash
MODULE="raspicommrs485"
if lsmod | grep "$MODULE" &> /dev/null ; then
echo "$MODULE is loaded!"
else
echo "Loading $MODULE driver"
insmod $1/$MODULE.ko
fi
start_app_here
Its important to use this resin image, 2.2.0 as i use some static references. (should be dynamic, but i’m not that good just yet ;-)…)
This ‘just worked’…