| # Use Node.js LTS image | |
| FROM node:18 | |
| # Set working directory | |
| WORKDIR /app | |
| # Copy package files and install dependencies | |
| COPY package*.json ./ | |
| RUN npm install | |
| # Copy the rest of your bot code | |
| COPY . . | |
| # Make sure the auth_info directory exists with correct permissions | |
| RUN mkdir -p ./auth_info && chmod -R 777 ./auth_info | |
| # Expose port for HTTP server | |
| EXPOSE 7860 | |
| # Start the bot | |
| CMD ["node", "index.js"] | |