RAG_backend / Dockerfile
Sahana31's picture
Update Dockerfile
91910aa verified
raw
history blame contribute delete
474 Bytes
FROM python:3.11-slim
WORKDIR /code
# Install PDF deps
RUN apt-get update && apt-get install -y \
poppler-utils \
tesseract-ocr \
libglib2.0-0 \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN pip install --no-cache-dir --upgrade pip && \
pip install --no-cache-dir -r requirements.txt
COPY . .
RUN mkdir -p /tmp/chroma_db /tmp/files /tmp/fonts
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]