Spaces:
Sleeping
Sleeping
| FROM python:3.11-slim | |
| LABEL maintainer="teamforge@ai" | |
| LABEL description="TeamForge: OpenEnv Benchmark for Autonomous Software Engineering Agents" | |
| RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/* | |
| RUN git config --global user.email "agent@teamforge.ai" \ | |
| && git config --global user.name "TeamForge Agent" \ | |
| && git config --global commit.gpgsign false \ | |
| && git config --global init.defaultBranch main | |
| WORKDIR /app | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir --upgrade pip \ | |
| && pip install --no-cache-dir -r requirements.txt | |
| COPY . . | |
| RUN mkdir -p logs results | |
| ENV API_BASE_URL="https://api.groq.com/openai/v1" | |
| ENV MODEL_NAME="llama3-8b-8192" | |
| ENV HF_TOKEN="" | |
| ENV PORT=7860 | |
| ENV PYTHONPATH="/app" | |
| ENV PYTHONUNBUFFERED=1 | |
| ENV PYTHONDONTWRITEBYTECODE=1 | |
| EXPOSE 7860 | |
| HEALTHCHECK --interval=30s --timeout=10s CMD python -c "import urllib.request; urllib.request.urlopen('http://localhost:7860/health')" | |
| # Start the FastAPI+Gradio server (OpenEnv validator calls /reset /step /state) | |
| CMD ["python", "server/app.py"] | |