docker build -t sensehat .
docker run --privileged --name sensehat -ti sensehat bash
python test.py
Running test.py validates the installation. See the SenseHat API docs for more SenseHat calls.
/temp route needs this Docker container config:
Devices: /dev/vchiq:/dev/vchiq
ENV: LD_LIBRARY_PATH=/opt/vc/lib PATH=$PATH:/opt/vc/bin
Volumes: /opt/vc:/opt/vc (read-only)