mirror of
https://github.com/koush/scrypted.git
synced 2026-02-08 08:19:56 +00:00
61 lines
1.7 KiB
Docker
61 lines
1.7 KiB
Docker
ARG BASE="16"
|
|
FROM node:${BASE}
|
|
|
|
# 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
|
|
|
|
# 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
|
|
|
|
# gstreamer native https://gstreamer.freedesktop.org/documentation/installing/on-linux.html?gi-language=c#install-gstreamer-on-ubuntu-or-debian
|
|
RUN apt-get -y install \
|
|
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
|
|
|
|
# python native
|
|
RUN apt-get -y install \
|
|
python3 \
|
|
python3-dev \
|
|
python3-gi \
|
|
python3-gst-1.0 \
|
|
python3-matplotlib \
|
|
python3-numpy \
|
|
python3-opencv \
|
|
python3-pil \
|
|
python3-pip \
|
|
python3-setuptools \
|
|
python3-skimage \
|
|
python3-wheel
|
|
|
|
# Coral Edge TPU
|
|
RUN apt-get -y install \
|
|
libedgetpu1-std
|
|
|
|
# python pip
|
|
RUN python3 -m pip install --upgrade pip
|
|
RUN python3 -m pip install aiofiles debugpy typing_extensions typing
|
|
|
|
ENV SCRYPTED_DOCKER_SERVE="true"
|
|
ENV SCRYPTED_CAN_RESTART="true"
|
|
ENV SCRYPTED_VOLUME="/server/volume"
|
|
ENV SCRYPTED_INSTALL_PATH="/server"
|