Trovi Artifact outlining how to enable the usage of the official rpi sense hat through both the i2c, gpio, and framebuffer interfaces
- dtoverlay=rpi-sense
- /dev/i2c-0
- /dev/i2c-1
- /dev/gpiomem
- /dev/gpiochip0
- /dev/gpiochip1
- /dev/fb0
- /dev/input/event0
- /dev/input/event1
- /dev/input/event2
- python3
- sense-hat (python)
- RTIMULib (python)
- libstdc++ (shared libraries)
The attached dockerfile uses a multistage build to minimize size and build-time
Build dependencies and sources are fetched in the builder stage, and used to generate python wheels with the necessary dependencies.
In the final image, these wheels are installed, and the minimal runtime dependencies included.
Comparison of sizes:
- Initial, single-stage, debian-bullseye build: 1.14GB
- Debian-bullseye, multistage build: 240MB
- Alpine multistage build: 146MB