| # Use official Python base image | |
| FROM python:3.11-slim | |
| # Set working directory | |
| WORKDIR /app | |
| # Copy requirements file (you need to create this) | |
| COPY requirements.txt . | |
| # Install dependencies | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy application code | |
| COPY . . | |
| # Expose the port your app runs on | |
| EXPOSE 5000 | |
| # Run the server with eventlet | |
| CMD ["python", "server.py"] |