FROM ghcr.io/all-hands-ai/openhands:latest USER root # Installation des dépendances manquantes (y compris tmux et git) pour l'environnement HF RUN apt-get update && apt-get install -y \ python3-pip \ tmux \ git \ && apt-get clean # Télécharger Chromium ET installer ses dépendances système requises (Apt) RUN /app/.venv/bin/playwright install chromium && \ /app/.venv/bin/playwright install-deps # Forcer les variables d'environnement ENV LLM_API_KEY="sk-dimercia" ENV LLM_BASE_URL="https://dieumercimvemba-dimercia.hf.space/v1" ENV LLM_MODEL="openai/dimercia-coder" ENV OPENHANDS_PORT=7860 ENV PORT=7860 ENV LOG_LEVEL="DEBUG" # --- CONFIGURATION RUNTIME ET SANDBOX --- ENV RUNTIME="local" ENV SANDBOX_TYPE="e2b" ENV WORKSPACE_BASE="/opt/workspace" # ---------------------------------------- # On crée le workspace RUN mkdir -p /opt/workspace && chown -R 1000:1000 /opt/workspace # On utilise uvicorn directement CMD ["python3", "-m", "uvicorn", "openhands.server.listen:app", "--host", "0.0.0.0", "--port", "7860"]