File size: 389 Bytes
cf17a7a
 
 
 
bb8897a
 
 
 
cf17a7a
bb8897a
 
 
cf17a7a
bb8897a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
FROM python:3.10-slim

# Install system dependencies for PDF processing
RUN apt-get update && apt-get install -y poppler-utils && rm -rf /var/lib/apt/lists/*

WORKDIR /code

COPY ./requirements.txt /code/requirements.txt
RUN pip install --no-cache-dir -r /code/requirements.txt

COPY . .

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