| # Use an official Node.js image | |
| FROM node:18 | |
| # Install FFmpeg | |
| RUN apt-get update && \ | |
| apt-get install -y ffmpeg git && \ | |
| rm -rf /var/lib/apt/lists/* | |
| # Set the working directory | |
| WORKDIR /app | |
| # Remove existing files and clone the repo | |
| RUN rm -rf /app/* && \ | |
| git clone https://GitHub.com/reaperofssa/reikertv /app | |
| # Install required packages | |
| RUN npm install express axios cors fluent-ffmpeg body-parser node-telegram-bot-api | |
| # Set permissions | |
| RUN chmod -R 777 /app | |
| # Expose port 7860 | |
| EXPOSE 7860 | |
| # Start the server | |
| CMD ["node", "backend/server.js"] |