forked from alanb128/balena-edge-impulse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.template
33 lines (23 loc) · 999 Bytes
/
Dockerfile.template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
FROM balenalib/%%BALENA_MACHINE_NAME%%-debian:bullseye
RUN install_packages \
libcamera-dev \
libcamera-apps-lite \
python3 \
v4l-utils
# Edge Impulse Linux
RUN curl -sL https://deb.nodesource.com/setup_12.x | sudo bash -
RUN install_packages gcc g++ make build-essential nodejs sox \
gstreamer1.0-tools gstreamer1.0-plugins-good \
gstreamer1.0-plugins-base gstreamer1.0-plugins-base-apps
RUN npm config set user root && sudo npm install edge-impulse-linux -g --unsafe-perm
# Edge Impulse SDK (optional)
RUN install_packages libatlas-base-dev libportaudio2 libportaudiocpp0 portaudio19-dev \
python3-pyaudio python3-psutil python3-pip ffmpeg libsm6 libxext6
# (See https://exerror.com/importerror-libgl-so-1-cannot-open-shared-object-file-no-such-file-or-directory/)
RUN pip3 install edge_impulse_linux -i https://pypi.python.org/simple
RUN pip3 install six
WORKDIR /usr/src/app
COPY start.sh ./
RUN chmod +x start.sh
ENV UDEV=on
CMD ["sh","./start.sh"]