Rixf123 commited on
Commit
de3bd0c
·
verified ·
1 Parent(s): e0e96b6

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +14 -3
Dockerfile CHANGED
@@ -1,8 +1,19 @@
1
  FROM python:3.10-slim
 
2
  WORKDIR /code
 
 
 
 
 
 
3
  COPY requirements.txt .
4
  RUN pip install --no-cache-dir -r requirements.txt
 
5
  COPY . .
6
- ENV GOD_KEY="singularity-supreme-2026"
7
- # Launch with 8 high-performance workers
8
- CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860", "--workers", "8"]
 
 
 
 
1
  FROM python:3.10-slim
2
+
3
  WORKDIR /code
4
+
5
+ # Essential system tools for 2026 performance monitoring
6
+ RUN apt-get update && apt-get install -y \
7
+ build-essential \
8
+ && rm -rf /var/lib/apt/lists/*
9
+
10
  COPY requirements.txt .
11
  RUN pip install --no-cache-dir -r requirements.txt
12
+
13
  COPY . .
14
+
15
+ # Expose the port defined in your README
16
+ EXPOSE 7860
17
+
18
+ # Launch with 4 workers for maximum 2026 stability
19
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860", "--workers", "4"]