FROM node:lts-buster # Install dependencies RUN apt-get update && \ apt-get install -y ffmpeg webp git && \ apt-get upgrade -y && \ rm -rf /var/lib/apt/lists/* # Create necessary directories with proper permissions RUN mkdir -p /tmp/knightbot && \ chmod -R 777 /tmp/knightbot # Clone the repository RUN git clone https://github.com/vaibhavk10/Knightbot /app WORKDIR /app # Install dependencies RUN yarn install --network-concurrency 1 # Set permissions for app directory RUN chmod -R 777 /app # Expose port for Hugging Face EXPOSE 7860 # Set production environment ok s ENV NODE_ENV=production # Start the bot CMD ["node", "index.js"]