Spaces:
Sleeping
Sleeping
Download Dockerfile from BBo09/ASK_pdf_test: direct link, hf CLI and curl.
- Browser
- Download file 454 Bytes
-
https://huggingface.co/spaces/BBo09/ASK_pdf_test/resolve/refs%2Fpr%2F1/Dockerfile
- Command line
-
hf download hf://spaces/BBo09/ASK_pdf_test@refs/pr/1/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/BBo09/ASK_pdf_test/resolve/refs%2Fpr%2F1/Dockerfile
454 Bytes
| FROM python:3.9 | |
| WORKDIR /code | |
| COPY --link --chown=1000 . . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| RUN mkdir -p /tmp/cache/ | |
| RUN chmod a+rwx -R /tmp/cache/ | |
| RUN apt-get update && apt-get install -y poppler-utils tesseract-ocr chromium | |
| ENV TRANSFORMERS_CACHE=/tmp/cache/ | |
| ENV PYTHONUNBUFFERED=1 GRADIO_ALLOW_FLAGGING=never GRADIO_NUM_PORTS=1 GRADIO_SERVER_NAME=0.0.0.0 GRADIO_SERVER_PORT=7860 SYSTEM=spaces | |
| CMD ["python", "app.py"] | |