Hi @mrrobot
I had good success with balenalib/raspberrypi4-64 (specifically balenalib/raspberrypi4-64-python:3-build). The 64bit variant didn’t have the raspberry pi binaries (like raspivid, raspistill, etc) so I added them
# get raspberry pi stuff
RUN curl http://ports.ubuntu.com/pool/universe/r/raspberrypi-userland/libraspberrypi- bin_0~20200520+git2fe4ca3-0ubuntu3~20.04_arm64.deb -o libraspberrypi-bin.deb && \
curl http://ports.ubuntu.com/pool/universe/r/raspberrypi-userland/libraspberrypi0_0~20200520+git2fe4ca3-0ubuntu3~20.04_arm64.deb -o libraspberrypi0.deb
RUN install_packages ./libraspberrypi-bin.deb ./libraspberrypi0.deb
I also like to have raspi-gpio available for debugging, so I installed it
# download and install raspi-gpio
RUN git clone --depth 1 https://github.com/RPi-Distro/raspi-gpio.git && cd raspi-gpio && ./configure && make && make install && cd ../ && rm -R raspi-gpio
Hope this helps.
Andrew