FROM python:3.11-slim RUN apt-get update && apt-get install -y --no-install-recommends \ libgomp1 \ tesseract-ocr \ tesseract-ocr-eng \ tesseract-ocr-ara \ && rm -rf /var/lib/apt/lists/* RUN useradd -m -u 1000 user USER user ENV HOME=/home/user \ PATH=/home/user/.local/bin:$PATH \ HF_HOME=/tmp/hf \ STREAMLIT_BROWSER_GATHER_USAGE_STATS=false WORKDIR $HOME/app RUN pip install --no-cache-dir --user torch --index-url https://download.pytorch.org/whl/cpu COPY --chown=user requirements.txt . RUN pip install --no-cache-dir --user -r requirements.txt COPY --chown=user app.py . COPY HR_policies.png ./ EXPOSE 7860 CMD ["streamlit", "run", "app.py", \ "--server.port=7860", \ "--server.address=0.0.0.0", \ "--server.enableXsrfProtection=false", \ "--server.enableCORS=false"]