# Use Node.js image FROM node:20 # Set working directory WORKDIR /app # Copy server and bot files COPY server.js . COPY bot/ ./bot/ # Set full permissions for bot/ RUN chmod -R 777 bot/ # Ensure a session file exists with full permissions RUN mkdir -p bot && touch bot/aayco.session && chmod 777 bot/aayco.session # Create bot/downloads directory and ensure full permissions RUN mkdir -p bot/downloads && chmod -R 777 bot/downloads # Copy package files and install dependencies RUN npm install input telegram node-telegram-bot-api express axios # Expose the port your app runs on EXPOSE 7860 # Start the server CMD ["node", "server.js"]