################################################################ # THIS FILE IS GENERATED. DO NOT EDIT. ################################################################ ################################################################ # Begin section generated from template/Dockerfile.common.header # This common file will be used by both Docker and the linux # install script. ################################################################ FROM buildpack-deps:bullseye as common # switch to nvm? ARG NODE_VERSION=16 RUN curl -fsSL https://deb.nodesource.com/setup_${NODE_VERSION}.x | bash - RUN apt-get update RUN apt-get install -y nodejs # 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 RUN apt-get -y install libedgetpu1-std RUN apt-get -y install software-properties-common apt-utils RUN apt-get -y update RUN apt-get -y upgrade # base development stuff RUN apt-get -y install \ build-essential \ gcc \ gir1.2-gtk-3.0 \ 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 gstreamer1.0-alsa # 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 # python pip RUN python3 -m pip install --upgrade pip RUN python3 -m pip install aiofiles debugpy typing_extensions typing ################################################################ # End section generated from template/Dockerfile.common.header ################################################################ ################################################################ # Begin section generated from template/Dockerfile.common.footer ################################################################ FROM common # avahi advertiser support RUN apt-get -y install \ libnss-mdns \ avahi-discover \ libavahi-compat-libdnssd-dev # copy configurations and scripts COPY fs / # s6 process supervisor ARG S6_OVERLAY_VERSION=3.1.1.2 ENV S6_CMD_WAIT_FOR_SERVICES_MAXTIME=0 ENV S6_KEEP_ENV=1 RUN case "$(uname -m)" in \ x86_64) S6_ARCH='x86_64';; \ armv7l) S6_ARCH='armhf';; \ aarch64) S6_ARCH='aarch64';; \ *) echo "Your system architecture isn't supported."; exit 1 ;; \ esac \ && cd /tmp \ && set -x \ && curl -SLOf https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/s6-overlay-noarch.tar.xz \ && tar -C / -Jxpf /tmp/s6-overlay-noarch.tar.xz \ && curl -SLOf https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/s6-overlay-${S6_ARCH}.tar.xz \ && tar -C / -Jxpf /tmp/s6-overlay-${S6_ARCH}.tar.xz ENTRYPOINT ["/init"] ENV SCRYPTED_DOCKER_SERVE="true" ENV SCRYPTED_CAN_RESTART="true" ENV SCRYPTED_VOLUME="/server/volume" ENV SCRYPTED_INSTALL_PATH="/server" ################################################################ # End section generated from template/Dockerfile.common.footer ################################################################