Spaces:
Build error
Build error
Download Dockerfile from christmaple/layoutlm-docvqa-paddleocr: direct link, hf CLI and curl.
- Browser
- Download file 500 Bytes
-
https://huggingface.co/spaces/christmaple/layoutlm-docvqa-paddleocr/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/christmaple/layoutlm-docvqa-paddleocr/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/christmaple/layoutlm-docvqa-paddleocr/resolve/main/Dockerfile
500 Bytes
| FROM python:3.10 | |
| ARG PIP_NO_CACHE_DIR=1 | |
| RUN apt-get update \ | |
| && apt-get install -y tesseract-ocr libgl1 \ | |
| && rm -rf /var/lib/apt/lists/* | |
| RUN pip install torch==2.1.1 -i https://download.pytorch.org/whl/cpu | |
| RUN pip install paddlepaddle==2.6.0 -i https://mirror.baidu.com/pypi/simple | |
| RUN pip install transformers pytesseract gradio Pillow paddleocr==2.7.0.3 | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV HOME=/home/user | |
| WORKDIR $HOME/app | |
| COPY --chown=user . $HOME/app | |
| CMD ["python", "app.py"] | |