Siminbrzq commited on
Commit
bcd6b3c
·
verified ·
1 Parent(s): 261e444

Put Dockerfile.hf

Browse files
Files changed (1) hide show
  1. Dockerfile.hf +25 -0
Dockerfile.hf ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # God Agent OS — Phase 1 backend for HuggingFace Spaces
2
+ FROM python:3.11-slim
3
+
4
+ WORKDIR /app
5
+
6
+ RUN apt-get update && apt-get install -y --no-install-recommends \
7
+ curl ca-certificates git \
8
+ && rm -rf /var/lib/apt/lists/*
9
+
10
+ COPY requirements.txt /app/requirements.txt
11
+ RUN pip install --no-cache-dir --upgrade pip \
12
+ && pip install --no-cache-dir -r /app/requirements.txt
13
+
14
+ COPY . /app
15
+
16
+ ENV PORT=7860 \
17
+ PYTHONUNBUFFERED=1 \
18
+ PYTHONPATH=/app
19
+
20
+ EXPOSE 7860
21
+
22
+ HEALTHCHECK --interval=30s --timeout=10s --start-period=30s --retries=3 \
23
+ CMD curl -fsS http://localhost:7860/health || exit 1
24
+
25
+ CMD ["python", "-m", "uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860", "--workers", "1", "--log-level", "info"]