Rixf123 commited on
Commit
11c4c2d
·
verified ·
1 Parent(s): e60941b

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +11 -6
Dockerfile CHANGED
@@ -1,15 +1,20 @@
1
  FROM python:3.10-slim
2
 
3
- # Install C++ tools and curl for system-level research
 
 
4
  RUN apt-get update && apt-get install -y \
5
  build-essential \
6
- curl \
7
  && rm -rf /var/lib/apt/lists/*
8
 
9
- WORKDIR /app
10
  COPY requirements.txt .
11
  RUN pip install --no-cache-dir -r requirements.txt
12
 
13
- COPY app.py .
14
- EXPOSE 7860
15
- CMD ["python", "app.py"]
 
 
 
 
 
1
  FROM python:3.10-slim
2
 
3
+ WORKDIR /code
4
+
5
+ # Install system dependencies for 2026 performance monitoring
6
  RUN apt-get update && apt-get install -y \
7
  build-essential \
8
+ libpq-dev \
9
  && rm -rf /var/lib/apt/lists/*
10
 
 
11
  COPY requirements.txt .
12
  RUN pip install --no-cache-dir -r requirements.txt
13
 
14
+ COPY . .
15
+
16
+ # Set environment variables
17
+ ENV GOD_KEY="singularity-supreme-2026"
18
+
19
+ # Run with 4 Workers for high concurrency
20
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860", "--workers", "4"]