| FROM python:3.9 | |
| WORKDIR /code | |
| # Zuerst requirements kopieren für schnelleres Caching | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Den Rest kopieren | |
| COPY . . | |
| # Port für Hugging Face | |
| EXPOSE 7860 | |
| # Startbefehl ohne gunicorn mit gevent Support | |
| CMD ["python", "app.py"] |