a9 commited on
Commit
6012863
·
verified ·
1 Parent(s): 5d1398d

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +25 -0
Dockerfile ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.11-slim
2
+
3
+ WORKDIR /app
4
+
5
+ # Install minimal system dependencies
6
+ RUN apt-get update && \
7
+ apt-get install -y --no-install-recommends \
8
+ curl \
9
+ libcurl4 \
10
+ && rm -rf /var/lib/apt/lists/*
11
+
12
+ # Install Python packages
13
+ RUN pip install --no-cache-dir \
14
+ fastapi \
15
+ uvicorn \
16
+ openai \
17
+ requests \
18
+ google-genai \
19
+ firebase-admin
20
+
21
+ # Copy app
22
+ COPY app.py .
23
+
24
+ # Run server
25
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]