| FROM python:3.11-slim | |
| WORKDIR /app | |
| # Copy files | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY . . | |
| ENV PYTHONUNBUFFERED=1 | |
| # Hugging Face requires binding to $PORT | |
| CMD ["python", "server.py"] | |
| FROM python:3.11-slim | |
| WORKDIR /app | |
| # Copy files | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY . . | |
| ENV PYTHONUNBUFFERED=1 | |
| # Hugging Face requires binding to $PORT | |
| CMD ["python", "server.py"] | |