mirror of
https://github.com/koush/scrypted.git
synced 2026-02-09 16:52:18 +00:00
52 lines
1.3 KiB
Docker
52 lines
1.3 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 install software-properties-common apt-utils
|
|
|
|
# Coral Edge TPU
|
|
RUN apt-get -y install \
|
|
libedgetpu1-std
|
|
|
|
RUN apt-get -y update
|
|
RUN apt-get -y upgrade
|
|
|
|
# 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
|
|
|
|
# gstreamer1.0-tools: handy CLI tools
|
|
# gstreamer1.0-plugins-bad: tsdemux
|
|
# gstreamer1.0-*: codecs, parsers, etc.
|
|
RUN apt-get -y install \
|
|
gstreamer1.0-tools \
|
|
gstreamer1.0-plugins-base \
|
|
gstreamer1.0-plugins-good \
|
|
gstreamer1.0-plugins-bad \
|
|
gstreamer1.0-libav
|
|
|
|
# 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"
|