mirror of
https://github.com/koush/scrypted.git
synced 2026-02-09 00:39:56 +00:00
118 lines
4.4 KiB
Docker
118 lines
4.4 KiB
Docker
################################################################
|
|
# THIS FILE IS GENERATED. DO NOT EDIT.
|
|
################################################################
|
|
################################################################
|
|
# Begin section generated from template/Dockerfile.full.header
|
|
# This common file will be used by both Docker and the linux
|
|
# install script.
|
|
################################################################
|
|
ARG BASE="noble"
|
|
FROM ubuntu:${BASE} as header
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
|
|
# base tools and development stuff
|
|
RUN apt-get update && apt-get -y install \
|
|
curl software-properties-common apt-utils \
|
|
ffmpeg \
|
|
pkg-config && \
|
|
apt-get -y update && \
|
|
apt-get -y upgrade
|
|
|
|
ARG NODE_VERSION=22
|
|
RUN apt-get install -y ca-certificates curl gnupg
|
|
RUN mkdir -p /etc/apt/keyrings
|
|
RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor --yes -o /etc/apt/keyrings/nodesource.gpg
|
|
RUN echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_"$NODE_VERSION".x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list
|
|
RUN apt-get update && apt-get install -y nodejs
|
|
|
|
# python native
|
|
RUN echo "Installing python."
|
|
RUN apt-get -y install \
|
|
python3 \
|
|
python3-dev \
|
|
python3-pip \
|
|
python3-setuptools \
|
|
python3-wheel
|
|
|
|
# gstreamer native https://gstreamer.freedesktop.org/documentation/installing/on-linux.html?gi-language=c#install-gstreamer-on-ubuntu-or-debian
|
|
RUN echo "Installing gstreamer."
|
|
# python-codecs pygobject dependencies
|
|
RUN apt-get -y install libcairo2-dev libgirepository1.0-dev
|
|
RUN apt-get -y install \
|
|
gstreamer1.0-tools gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-libav \
|
|
gstreamer1.0-vaapi
|
|
|
|
# python3 gstreamer bindings
|
|
RUN echo "Installing gstreamer bindings."
|
|
RUN apt-get -y install \
|
|
python3-gst-1.0
|
|
|
|
# allow pip to install to system
|
|
RUN rm -f /usr/lib/python**/EXTERNALLY-MANAGED
|
|
|
|
# ERROR: Cannot uninstall pip 24.0, RECORD file not found. Hint: The package was installed by debian.
|
|
# RUN python3 -m pip install --upgrade pip
|
|
RUN python3 -m pip install debugpy
|
|
|
|
################################################################
|
|
# End section generated from template/Dockerfile.full.header
|
|
################################################################
|
|
################################################################
|
|
# Begin section generated from template/Dockerfile.full.footer
|
|
################################################################
|
|
FROM header as base
|
|
|
|
# vulkan
|
|
RUN apt -y install libvulkan1
|
|
|
|
# intel opencl for openvino
|
|
RUN curl https://raw.githubusercontent.com/koush/scrypted/main/install/docker/install-intel-graphics.sh | bash
|
|
|
|
# NPU driver will SIGILL on openvino prior to 2024.5.0
|
|
RUN curl https://raw.githubusercontent.com/koush/scrypted/main/install/docker/install-intel-npu.sh | bash
|
|
|
|
# amd opencl
|
|
RUN curl https://raw.githubusercontent.com/koush/scrypted/main/install/docker/install-amd-graphics.sh | bash
|
|
|
|
# python 3.9 from ppa.
|
|
# 3.9 is the version with prebuilt support for tensorflow lite
|
|
RUN add-apt-repository -y ppa:deadsnakes/ppa && \
|
|
apt-get -y install \
|
|
python3.9 \
|
|
python3.9-dev \
|
|
python3.9-distutils
|
|
|
|
# allow pip to install to system
|
|
RUN rm -f /usr/lib/python**/EXTERNALLY-MANAGED
|
|
|
|
# RUN python3.9 -m pip install --upgrade pip
|
|
RUN python3.9 -m pip install debugpy
|
|
|
|
# Coral Edge TPU
|
|
# 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 && apt-get -y install libedgetpu1-std
|
|
|
|
# set default shell to bash
|
|
RUN chsh -s /bin/bash
|
|
ENV SHELL="/bin/bash"
|
|
|
|
ENV SCRYPTED_INSTALL_ENVIRONMENT="docker"
|
|
ENV SCRYPTED_CAN_RESTART="true"
|
|
ENV SCRYPTED_VOLUME="/server/volume"
|
|
ENV SCRYPTED_INSTALL_PATH="/server"
|
|
|
|
RUN test -f "/usr/bin/ffmpeg" && test -f "/usr/bin/python3" && test -f "/usr/bin/python3.9" && test -f "/usr/bin/python3.12"
|
|
ENV SCRYPTED_FFMPEG_PATH="/usr/bin/ffmpeg"
|
|
ENV SCRYPTED_PYTHON_PATH="/usr/bin/python3"
|
|
ENV SCRYPTED_PYTHON39_PATH="/usr/bin/python3.9"
|
|
ENV SCRYPTED_PYTHON312_PATH="/usr/bin/python3.12"
|
|
|
|
ENV SCRYPTED_DOCKER_FLAVOR="full"
|
|
|
|
################################################################
|
|
# End section generated from template/Dockerfile.full.footer
|
|
################################################################
|