| # Use the official Node.js LTS image | |
| FROM node:18-alpine | |
| # Set the working directory inside the container | |
| WORKDIR /app | |
| # Install dependencies | |
| RUN npm install express cors axios node-cron | |
| # Copy the entire project into the container | |
| COPY . . | |
| # Expose the port (must match the Express server port) | |
| EXPOSE 7860 | |
| # Start the server | |
| CMD ["node", "server.js"] |