| # Use a lightweight Node.js image | |
| FROM node:20-slim | |
| # Install git | |
| RUN apt-get update && apt-get install -y git && apt-get clean | |
| # Set working directory | |
| WORKDIR /app | |
| # Clone your repository | |
| RUN git clone https://github.com/ReirLair/sel . | |
| # Install dependencies (assuming you have a package.json) | |
| RUN npm install express dotenv | |
| # Expose the same port | |
| EXPOSE 7860 | |
| # Start the app | |
| CMD ["node", "app.js"] |