| # Use Node.js 20 base image | |
| FROM node:20 | |
| # Create and change to the app directory | |
| WORKDIR /usr/src/app | |
| # Copy package.json and package-lock.json first for caching | |
| COPY package*.json ./ | |
| # Install dependencies | |
| RUN npm install | |
| # Copy the rest of the application code | |
| COPY . . | |
| # Expose the port (Render/HuggingFace use this for keep-alive) | |
| EXPOSE 7860 | |
| ENV PORT=7860 | |
| # Start the bot | |
| CMD [ "npm", "start" ] | |