FROM node:24-slim # Install git and ffmpeg. System ffmpeg is required to process streams without crashing (SIGSEGV) RUN apt-get update && apt-get install -y git ffmpeg && rm -rf /var/lib/apt/lists/* # Set environment variable so server.js knows to use the system ffmpeg ENV RUNNING_IN_DOCKER=true RUN mkdir -p /tmp/uploads && chmod 777 /tmp/uploads WORKDIR /app EXPOSE 7860 CMD ["sh", "-c", "git clone https://hupa11:$GIT_TOKEN@github.com/$GIT_REPO.git . && npm install && npm start"]