ethiotech4848 commited on
Commit
72703ed
·
verified ·
1 Parent(s): 26a6bb0

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +19 -0
Dockerfile ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use official Python image as base
2
+ FROM python:3.10-slim
3
+
4
+ # Set working directory
5
+ WORKDIR /app
6
+
7
+ # Copy requirements and install
8
+ COPY requirements.txt .
9
+ RUN pip install --no-cache-dir -r requirements.txt
10
+
11
+ # Copy app code and KB
12
+ COPY app.py .
13
+ COPY kb.json .
14
+
15
+ # Expose port for Huggingface Spaces (8000 is default for FastAPI)
16
+ EXPOSE 8000
17
+
18
+ # Run Uvicorn server
19
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"]