Download Dockerfile from tsystems/visual_document_retrieval: direct link, hf CLI and curl.
- Browser
- Download file 544 Bytes
-
https://huggingface.co/spaces/tsystems/visual_document_retrieval/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/tsystems/visual_document_retrieval/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/tsystems/visual_document_retrieval/resolve/main/Dockerfile
544 Bytes
| #FROM ubuntu:22.04 | |
| FROM python:3.11-bullseye | |
| ARG DEBIAN_FRONTEND=noninteractive | |
| USER root | |
| RUN apt-get update && apt-get install -y \ | |
| curl \ | |
| nano \ | |
| poppler-utils \ | |
| software-properties-common \ | |
| && rm -rf /var/lib/apt/lists/* | |
| ENV APP_ROOT=/home | |
| WORKDIR /home | |
| COPY . . | |
| RUN chown -R root:root ${APP_ROOT} && chmod -R 777 ${APP_ROOT} | |
| RUN pip install --upgrade pip setuptools \ | |
| && pip install --no-cache-dir -r requirements.txt \ | |
| && pip install streamlit==1.38.0 | |
| EXPOSE 7860 | |
| ENTRYPOINT /home/server/start_server.sh |