File size: 1,066 Bytes
637f42c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
991240b
637f42c
 
 
 
 
 
 
 
760f5e6
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
34
35
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"]