Spaces:
Sleeping
Sleeping
Download Dockerfile from uday170120/alyrapictotext: direct link, hf CLI and curl.
- Browser
- Download file 909 Bytes
-
https://huggingface.co/spaces/uday170120/alyrapictotext/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/uday170120/alyrapictotext/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/uday170120/alyrapictotext/resolve/main/Dockerfile
909 Bytes
| FROM python:3.10-slim | |
| ENV PYTHONUNBUFFERED=1 \ | |
| PYTHONDONTWRITEBYTECODE=1 \ | |
| PIP_NO_CACHE_DIR=1 \ | |
| PIP_DISABLE_PIP_VERSION_CHECK=1 \ | |
| P2T_APP_MODE=ui \ | |
| P2T_PRELOAD_MODELS=true \ | |
| P2T_OUTPUT_MD_ROOT_DIR=/tmp/pix2text-output \ | |
| STREAMLIT_BROWSER_GATHER_USAGE_STATS=false \ | |
| STREAMLIT_SERVER_HEADLESS=true \ | |
| STREAMLIT_SERVER_ADDRESS=0.0.0.0 \ | |
| STREAMLIT_SERVER_ENABLE_XSRF_PROTECTION=false \ | |
| STREAMLIT_SERVER_PORT=7860 | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| libgl1 \ | |
| libglib2.0-0 \ | |
| libgomp1 \ | |
| libsm6 \ | |
| libxext6 \ | |
| libxrender1 \ | |
| && rm -rf /var/lib/apt/lists/* | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV HOME=/home/user \ | |
| PATH=/home/user/.local/bin:$PATH | |
| WORKDIR $HOME/app | |
| COPY --chown=user . $HOME/app | |
| RUN pip install --upgrade pip && pip install ".[deploy]" | |
| EXPOSE 7860 | |
| CMD ["python", "scripts/start_app.py"] | |