Spaces:
Sleeping
Sleeping
File size: 1,047 Bytes
c92a277 7c2b2c3 568446d 14ec006 cf8775f 7c2b2c3 090bc91 7c2b2c3 090bc91 7c2b2c3 4e26ca6 7c2b2c3 64317ea 7c2b2c3 64317ea 7c2b2c3 c92a277 7c2b2c3 090bc91 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | 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"] |