view Dockerfile @ 6:ccfea3625cf6

render thumbs and display them (no video player at all atm)
author drewp@bigasterisk.com
date Sun, 09 Apr 2023 18:02:25 -0700
parents ee55ed10faec
children 9e94454560de
line wrap: on
line source

FROM bang5:5000/base_basic

ENV KEYRING=/usr/share/keyrings/nodesource.gpg
ENV VERSION=node_16.x
ENV DISTRO=jammy
RUN apt-get install -y gpg

RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource.gpg.key | gpg --dearmor | tee "$KEYRING" >/dev/null && \
  echo "deb [signed-by=$KEYRING] https://deb.nodesource.com/$VERSION $DISTRO main" | tee /etc/apt/sources.list.d/nodesource.list && \
  echo "deb-src [signed-by=$KEYRING] https://deb.nodesource.com/$VERSION $DISTRO main" | tee -a /etc/apt/sources.list.d/nodesource.list && \
  apt-get update && \
  apt-get remove -y nodejs libnode-dev libnode72 && \
  apt-get install -y nodejs && \
  apt autoremove -y && \
  pnpm add -g pnpm

RUN pnpm set registry "https://bigasterisk.com/js/"
WORKDIR /opt

RUN apt update && apt-get install -y git ffmpegthumbnailer

COPY pyproject.toml pdm.lock ./
RUN pdm sync

COPY package.json pnpm-lock.yaml ./
RUN pnpm install

COPY index.html vite.config.ts serve-files.js ./
COPY src/ ./src/

COPY video.py video_service.py ./