fix(space): launch FastAPI app with runtime dependencies

#1
by QGTNL - opened
Files changed (2) hide show
  1. Dockerfile +10 -8
  2. requirements.txt +13 -10
Dockerfile CHANGED
@@ -1,9 +1,11 @@
1
- FROM python:3.10-slim
2
- RUN useradd -m -u 1000 user
3
- USER user
4
- ENV PATH="/home/user/.local/bin:$PATH"
5
  WORKDIR /app
6
- COPY --chown=user ./requirements.txt /app/requirements.txt
7
- RUN pip install --no-cache-dir --upgrade -r /app/requirements.txt
8
- COPY --chown=user . /app
9
- CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
 
 
 
 
1
+ FROM python:3.12-slim
2
+
 
 
3
  WORKDIR /app
4
+
5
+ COPY requirements.txt .
6
+ RUN pip install --no-cache-dir --upgrade -r requirements.txt
7
+
8
+ COPY . .
9
+
10
+ EXPOSE 7860
11
+ CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
requirements.txt CHANGED
@@ -1,10 +1,13 @@
1
- # Citadel Sovereign Core / Vortex Dependencies (District 05 & District 08)
2
- fastapi>=0.110.0
3
- uvicorn[standard]>=0.28.0
4
- pydantic>=2.6.0
5
- httpx>=0.27.0
6
- requests>=2.31.0
7
- pyzmq>=25.1.0
8
- duckdb>=0.10.0
9
- gradio>=4.19.0
10
- pyyaml>=6.0.1
 
 
 
 
1
+ # Citadel Sovereign Core / Vortex Dependencies (District 05 & District 08)
2
+ fastapi>=0.110.0
3
+ uvicorn[standard]>=0.28.0
4
+ pydantic>=2.6.0
5
+ httpx>=0.27.0
6
+ requests>=2.31.0
7
+ pyzmq>=25.1.0
8
+ duckdb>=0.10.0
9
+ gradio>=4.19.0
10
+ pyyaml>=6.0.1
11
+ ccxt>=4.4.0
12
+ pandas>=2.0.0
13
+ pandas-ta>=0.3.14b0