arabic-rag-chatbot / Dockerfile
Ashabk's picture
Update Dockerfile
9956e99 verified
Raw
History Blame Contribute Delete
796 Bytes
FROM python:3.13.5-slim
#FROM python:3.11-slim
WORKDIR /app
# Install build tools, plus Tesseract OCR (with Arabic language pack)
# and Poppler, which our app needs for PDF-to-image conversion and
# OCR-based Arabic text extraction
RUN apt-get update && apt-get install -y \
build-essential \
curl \
git \
tesseract-ocr \
tesseract-ocr-ara \
poppler-utils \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt ./
RUN pip3 install -r requirements.txt
# Copy all project files into the container
COPY . .
EXPOSE 8501
HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
ENTRYPOINT ["streamlit", "run", "app.py", \
"--server.port=8501", \
"--server.address=0.0.0.0", \
"--server.enableXsrfProtection=false", \
"--server.enableCORS=false"]