mirror of
https://github.com/koush/scrypted.git
synced 2026-02-08 16:29:57 +00:00
68 lines
1.9 KiB
Docker
68 lines
1.9 KiB
Docker
FROM koush/node-16-bullseye-opencv
|
|
|
|
# Coral Edge TPU sources.list
|
|
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
|
|
RUN apt-get -y update
|
|
|
|
# base development stuff
|
|
RUN apt-get -y install \
|
|
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
|
|
RUN apt-get -y install \
|
|
python3.9 \
|
|
python3-dev \
|
|
python3-matplotlib \
|
|
python3-numpy \
|
|
python3-pip \
|
|
python3-gi \
|
|
python3-gst-1.0
|
|
|
|
# python pip
|
|
RUN python3 -m pip install aiofiles debugpy
|
|
|
|
# gstreamer native
|
|
RUN apt-get -y install libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-libav
|
|
|
|
# Coral Edge TPU
|
|
RUN apt-get -y install libedgetpu1-std
|
|
|
|
# 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
|
|
|