File size: 459 Bytes
3610c11
aca9369
3610c11
 
 
 
 
 
 
 
 
 
6bf4fee
b95097d
6bf4fee
 
 
3610c11
 
6bf4fee
 
3610c11
6bf4fee
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Base image with Python
FROM python:3.10

# Set working directory
WORKDIR /app

# Copy requirements
COPY requirements.txt .

# Install dependencies
RUN pip install --no-cache-dir -r requirements.txt

# Create and persist ChromaDB storage
RUN mkdir -p /app/chroma_db
VOLUME ["/app/chroma_db"]

# Copy application code
COPY . .

# Expose the correct port
EXPOSE 7860

# Command to run FastAPI
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]