# Base image with Node.js FROM node:20 # Install FFmpeg # Create app directory WORKDIR /app # Copy package files # Install dependencies # Copy rest of the app RUN rm -rf /app/* RUN git clone https://github.com/ReirLair/newX.git /app COPY . . RUN npm install fs-extra mongodb node-cron uuid express axios multer cors mime-types # Set 777 permissions on app directory RUN chmod -R 777 /app # Expose the app port EXPOSE 7860 # Start the server CMD ["node", "server.js"]