mirror of
https://github.com/koush/scrypted.git
synced 2026-02-09 16:52:18 +00:00
67 lines
2.2 KiB
Docker
67 lines
2.2 KiB
Docker
FROM koush/node-16-bullseye-opencv
|
|
|
|
# Coral Edge TPU sources.list
|
|
# https://coral.ai/docs/accelerator/get-started/#runtime-on-linux
|
|
RUN echo "deb https://packages.cloud.google.com/apt coral-edgetpu-stable main" | tee /etc/apt/sources.list.d/coral-edgetpu.list
|
|
RUN curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add -
|
|
|
|
RUN apt-get -y update
|
|
RUN apt-get -y upgrade
|
|
RUN apt-get -y install software-properties-common apt-utils
|
|
RUN apt-get -y update
|
|
|
|
RUN apt-get -y install \
|
|
# base development stuff
|
|
build-essential \
|
|
gcc \
|
|
gir1.2-gtk-3.0 \
|
|
libavahi-compat-libdnssd-dev \
|
|
libcairo2-dev \
|
|
libgirepository1.0-dev \
|
|
libglib2.0-dev \
|
|
libjpeg-dev \
|
|
libgif-dev \
|
|
libopenjp2-7 \
|
|
libpango1.0-dev \
|
|
librsvg2-dev \
|
|
pkg-config \
|
|
# python native
|
|
python3.9 \
|
|
python3-dev \
|
|
python3-gi \
|
|
python3-gst-1.0 \
|
|
python3-matplotlib \
|
|
python3-numpy \
|
|
python3-pil \
|
|
python3-pip \
|
|
python3-skimage \
|
|
# gstreamer native https://gstreamer.freedesktop.org/documentation/installing/on-linux.html?gi-language=c#install-gstreamer-on-ubuntu-or-debian
|
|
gstreamer1.0-tools libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libgstreamer-plugins-bad1.0-dev gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav \
|
|
# Coral Edge TPU
|
|
libedgetpu1-std
|
|
|
|
# python pip
|
|
RUN python3 -m pip install aiofiles debugpy
|
|
|
|
# opencv
|
|
# RUN apt-get -y install libopencv-dev
|
|
# sanity check
|
|
# RUN pkg-config opencv4 --libs
|
|
|
|
# sanity check
|
|
RUN python3.9 -v
|
|
|
|
# TODO: I don't think this even works anymore on latest raspbian. should maybe switch to v4l2.
|
|
# grab raspbian (omx) ffmpeg, since we don't know at build time whether this is
|
|
# a raspbian system.
|
|
RUN mkdir -p /raspbian && cd /raspbian \
|
|
&& curl -O -L https://github.com/homebridge/ffmpeg-for-homebridge/releases/latest/download/ffmpeg-raspbian-armv6l.tar.gz \
|
|
&& tar xzvfm ffmpeg-raspbian-armv6l.tar.gz \
|
|
&& rm ffmpeg-raspbian-armv6l.tar.gz
|
|
ENV SCRYPTED_RASPBIAN_FFMPEG_PATH="/raspbian/usr/local/bin/ffmpeg"
|
|
|
|
ENV SCRYPTED_DOCKER_SERVE="true"
|
|
ENV SCRYPTED_CAN_RESTART="true"
|
|
ENV SCRYPTED_VOLUME=/server/volume
|
|
|