Last active
December 29, 2025 22:56
-
-
Save cpatulea/6da5c0b4f86eecb80cd92e14a055bd5e to your computer and use it in GitHub Desktop.
HomeAssistant with OpenCV
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Usage: | |
| # docker image pull ghcr.io/home-assistant/wheels/amd64/musllinux_1_2/cp313:dev | |
| # # update ghcr.io/home-assistant/home-assistant:${VERSION} | |
| # docker build -t ghcr.io/home-assistant/home-assistant:local . | |
| # docker run -d --name homeassistant --restart=always \ | |
| # --privileged -e TZ=America/Montreal \ | |
| # -v /opt/homeassistant:/config -v /run/dbus:/run/dbus:ro \ | |
| # --network=host \ | |
| # ghcr.io/home-assistant/home-assistant:local | |
| # Can't build opencv directly in 'core' image, it lacks Ninja and GMake. | |
| # "CMake Error: CMake was unable to find a build program corresponding to "Unix Makefiles"." | |
| FROM ghcr.io/home-assistant/wheels/amd64/musllinux_1_2/cp313:dev AS wheels | |
| RUN MAKEFLAGS="-j$(nproc)" pip wheel -v opencv-python-headless==4.12.0.88 | |
| FROM ghcr.io/home-assistant/home-assistant:2025.12.4 | |
| COPY --from=wheels /data/opencv_python_headless-4.12.0.88-cp313-cp313-linux_x86_64.whl . | |
| RUN pip install ./opencv_python_headless-4.12.0.88-cp313-cp313-linux_x86_64.whl |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment