RAG_backend / Dockerfile
Sahana31's picture
Update Dockerfile
1e2dd83 verified
raw
history blame contribute delete
452 Bytes
FROM python:3.11-slim
WORKDIR /code
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
EXPOSE 7860
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]