Download Dockerfile from opulentyn/IDDocLive: direct link, hf CLI and curl.
- Browser
- Download file 652 Bytes
-
https://huggingface.co/spaces/opulentyn/IDDocLive/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/opulentyn/IDDocLive/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/opulentyn/IDDocLive/resolve/main/Dockerfile
652 Bytes
| FROM python:3.8-slim | |
| RUN apt-get update && \ | |
| apt-get install -y binutils wget curl procps git git-lfs && \ | |
| rm -rf /var/lib/apt/lists/* | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV PATH="/home/user/.local/bin:$PATH" | |
| WORKDIR /app | |
| COPY --chown=user ./opyidlive.py . | |
| COPY --chown=user ./app.py . | |
| COPY --chown=user ./demo.py . | |
| COPY --chown=user ./requirements.txt . | |
| COPY --chown=user ./run.sh . | |
| COPY --chown=user ./examples ./examples | |
| COPY --chown=user ./model ./model | |
| COPY --chown=user ./lib /usr/lib | |
| COPY --chown=user ./lib/libopyidlive.so ./lib/libopyidlive.so | |
| RUN pip3 install -r requirements.txt | |
| RUN chmod a+x run.sh | |
| CMD ["./run.sh"] | |
| EXPOSE 7860 |