raviix46 commited on
Commit
80d9404
·
verified ·
1 Parent(s): aba4ae4

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +25 -0
Dockerfile ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Dockerfile
2
+ FROM python:3.11-slim
3
+
4
+ WORKDIR /app
5
+
6
+ # System deps if needed later (kept minimal)
7
+ RUN apt-get update && apt-get install -y --no-install-recommends \
8
+ git \
9
+ && rm -rf /var/lib/apt/lists/*
10
+
11
+ # Install Python deps
12
+ COPY requirements.txt .
13
+ RUN pip install --no-cache-dir -r requirements.txt
14
+
15
+ # Copy all project files
16
+ COPY . .
17
+
18
+ ENV PYTHONUNBUFFERED=1
19
+
20
+ # Expose API (FastAPI) and UI (Gradio) ports
21
+ EXPOSE 8000
22
+ EXPOSE 7860
23
+
24
+ # Default command can be overridden by docker-compose
25
+ CMD ["uvicorn", "api:app", "--host", "0.0.0.0", "--port", "8000"]