File size: 424 Bytes
72703ed
 
 
 
 
 
 
 
 
 
 
 
 
 
 
d8cdbfb
72703ed
 
d8cdbfb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Use official Python image as base
FROM python:3.10-slim

# Set working directory
WORKDIR /app

# Copy requirements and install
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

# Copy app code and KB
COPY app.py .
COPY kb.json .

# Expose port for Huggingface Spaces (8000 is default for FastAPI)
EXPOSE 7860

# Run Uvicorn server
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]