File size: 831 Bytes
bb9b14c
5d62489
a20767f
 
666aab6
bb9b14c
 
 
 
666aab6
bb9b14c
 
 
 
666aab6
bb9b14c
 
666aab6
bb9b14c
 
 
666aab6
f2f7f3e
a20767f
bb9b14c
 
666aab6
bb9b14c
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
# God Agent OS — Phase 1 backend (FastAPI + E2B + SSE)
FROM python:3.11-slim

WORKDIR /app

# System deps (curl for healthcheck, git for any sandbox-side workflows)
RUN apt-get update && apt-get install -y --no-install-recommends \
    curl ca-certificates git \
 && rm -rf /var/lib/apt/lists/*

# Python deps
COPY requirements.txt /app/requirements.txt
RUN pip install --no-cache-dir --upgrade pip \
 && pip install --no-cache-dir -r /app/requirements.txt

# App code
COPY . /app

ENV PORT=7860 \
    PYTHONUNBUFFERED=1 \
    PYTHONPATH=/app

EXPOSE 7860

HEALTHCHECK --interval=30s --timeout=10s --start-period=20s --retries=3 \
  CMD curl -fsS http://localhost:7860/health || exit 1

CMD ["python", "-m", "uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860", "--workers", "1", "--log-level", "info", "--no-access-log"]