RaspberryPi Hat-MCC118 Lib not working on Docker Container

By following installation instruction from (GitHub - mccdaq/daqhats: MCC DAQ HAT Library for Raspberry Pi).

MCC118 Library is working fine when installing locally on RaspberryPi 3B+ but not on docker container.

At the Dockerfile.arm32v7:

FROM arm32v7/python:3.9-bullseye
WORKDIR /app

RUN apt-get update*
** && apt-get install -y git python3-smbus python-dev python3-dev*

** i2c-tools libi2c-dev python3-pip python3-rpi.gpio\ **
** tk python3-scipy python3-matplotlib libatlas-base-dev **
** gcc mono-mcs && rm -rf /var/lib/apt/lists/***
RUN apt-get upgrade

COPY requirements.txt ./
RUN python -m pip install --upgrade pip
RUN pip install --index-url= -r requirements.txt

RUN git clone GitHub - mccdaq/daqhats: MCC DAQ HAT Library for Raspberry Pi
WORKDIR /app/daqhats
**RUN ./install.sh -y **

**WORKDIR /app
CMD [ “python3”, “-u”, “./main.py” ]

This code continuously installs the git pull and successfully finishes the build even though it has errors.

Errors While RUNNING ./install.sh -y at Docker:

  1. #gpio.c:18:10: fatal error: bcm_host.h: No such file or directory

| #include “bcm_host.h” (This file is located in /usr/build when installed locally in raspberrypi)

2.#install: cannot stat ‘mcc172_firmware_update’: No such file or directory
3.#make: ***[makefile:32 build/gpio.o] Error 1
4.# make: *** [makefile:7:mcc118/.] Error 2]
5. # ./install.sh: line 36: daqhats_read_eeproms: command not found

Errors after deploying to RaspberryPi:

  1. Exception: daqhats shared library is not installed (This libraries is located in /usr/local/lib when installed locally in raspberrypi)

My Conclusion: When installing the git cloned lib locally, it is installing to different directories in the raspberrypi wherein when installing in docker container it doesnt have does directories which the raspberry pi have?. :thinking: :thinking: :thinking: :thinking: :thinking: