Spaces:
Sleeping
Sleeping
Download Dockerfile from ciass/protest-segments: direct link, hf CLI and curl.
- Browser
- Download file 796 Bytes
-
https://huggingface.co/spaces/ciass/protest-segments/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/ciass/protest-segments/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/ciass/protest-segments/resolve/main/Dockerfile
796 Bytes
| # use nvidia image as base image | |
| FROM nvcr.io/nvidia/pytorch:22.07-py3 | |
| ARG DEBIAN_FRONTEND=noninteractive | |
| # install dependency | |
| RUN apt-get update && apt-get install -y \ | |
| libgl1 \ | |
| dvipng \ | |
| texlive-latex-extra \ | |
| texlive-fonts-recommended \ | |
| cm-super | |
| # create user | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV HOME=/home/user \ | |
| PATH=/home/user/.local/bin:$PATH | |
| WORKDIR $HOME/app | |
| # clone repository | |
| RUN git clone https://github.com/ciass-konstanz/protest-segments ./ --recurse-submodules | |
| COPY --chown=user ./app.py ./app.py | |
| COPY --chown=user ./requirements.txt ./requirements.txt | |
| COPY --chown=user ./scripts/install.sh ./scripts/install.sh | |
| COPY --chown=user ./scripts/start.sh ./scripts/start.sh | |
| CMD ["/bin/bash", "-c", "source scripts/install.sh && source scripts/start.sh"] | |