Hi @Sammidd,
I noticed multiple issues with your Dockerfile:
- You are using Debian Stretch as a base image, however this version reached end of life in July: Debian -- News -- Debian 8 Long Term Support reaching end-of-life, I recommend going to Bullseye which is the latest LTS version,
- You left a
<key>
placeholder in your first RUN instruction. I had to dig a little for this one but figured out the key to use: 82B129927FA3303E
Using these two modifications I could build for a Rasberrypi3-64 fleet without issues using this Dockerfile:
# Build image for Raspberry Pi 4 Base 64
FROM balenalib/aarch64-debian:bullseye-build
LABEL io.balena.device-type="raspberrypi4-64"
RUN echo "deb http://archive.raspberrypi.org/debian bullseye main ui" >> /etc/apt/sources.list.d/raspi.list &&\
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 82B129927FA3303E
RUN apt-get update && apt-get upgrade -y && apt-get dist-upgrade -y
RUN apt-get install -y python3 \
python3-dev \
python3-pip \
python3-setuptools
# Install and Build Librealsense (For D415 Intel RealSense Camera)
RUN apt-get install -y git libssl-dev libusb-1.0-0-dev pkg-config libgtk-3-dev cmake libglfw3-dev build-essential
RUN git clone https://github.com/IntelRealSense/librealsense.git
RUN cd librealsense/ && ./scripts/setup_udev_rules.sh
RUN mkdir build &&\
cd build &&\
cmake /librealsense/ -DBUILD_PYTHON_BINDINGS:bool=true -DBUILD_EXAMPLES=true -DBUILD_GRAPHICAL_EXAMPLES=false -DCMAKE_BUILD_TYPE=Release &&\
make -j4 &&\
make install
ENV LD_LIBRARY_PATH="/usr/local/lib"
ENV INITSYSTEM on
WORKDIR /usr/src/app
COPY ./app/ /usr/src/app/
CMD ["python3", "/usr/src/app/test_server.py"]
Let us know if it fixes your issue,
Aurélien