Spaces:
Running
Running
| FROM python:3.11-slim | |
| ENV PYTHONUNBUFFERED=1 | |
| ENV PORT=7860 | |
| WORKDIR /app | |
| # Installer curl (OBLIGATOIRE) | |
| RUN apt-get update \ | |
| && apt-get install -y --no-install-recommends curl \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Dépendances Python | |
| RUN pip install --no-cache-dir rotating-mitmproxy flask requests | |
| COPY start.sh /app/start.sh | |
| COPY health.py /app/health.py | |
| RUN chmod +x /app/start.sh | |
| EXPOSE 7860 | |
| EXPOSE 3129 | |
| CMD ["/app/start.sh"] | |