A sample project for a recent python version working with libcamera support in docker.
This project required the buildx
docker driver for different target platforms.
You can either use buildx
or build the image on a Raspberry PI.
I recommend to use buildx
if you don't want to wait hours for the build to complete.
docker run --privileged --rm tonistiigi/binfmt --install all
docker buildx build --progress=plain --platform=linux/arm/v7 --load -t rpi-cam -f Dockerfile .
docker run --rm --name rpi-cam -it rpi-cam
Take a look at the docker-compose.yml
to see which devices/volumes are required for this container to work.
Then either run or work on something yourself:
docker compose up
If you don't want to use compose, you can always use this:
docker run --rm --name rpi-cam -it ghcr.io/maximilian-staab/rpi-cam:latest