File size: 495 Bytes
6297cbe
54298ae
 
6297cbe
 
 
 
 
54298ae
 
6297cbe
 
54298ae
6297cbe
 
 
54298ae
6297cbe
54298ae
 
6297cbe
d07d383
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Base image with Python
FROM python:3.10-slim

# Set environment variables to avoid cache permission issues
ENV TRANSFORMERS_CACHE=/app/cache
ENV HF_HOME=/app/cache

# Set working directory
WORKDIR /app

# Copy your code
COPY . /app

# Install dependencies
RUN pip install --upgrade pip
RUN pip install fastapi uvicorn python-multipart sentence-transformers torch pandas PyMuPDF

# Expose port
EXPOSE 7860

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