Spaces:
Running
Running
File size: 828 Bytes
e940617 37389d5 828805f 37389d5 46e86fa e940617 46e86fa 98f0dfa 46e86fa 694cb51 37389d5 46e86fa e940617 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | 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"] |