Download Dockerfile from nobilake/api: direct link, hf CLI and curl.
- Browser
- Download file 1.24 kB
-
https://huggingface.co/spaces/nobilake/api/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/nobilake/api/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/nobilake/api/resolve/main/Dockerfile
1.24 kB
| # Use a base image with Python and Jupyter Notebook installed | |
| FROM jupyter/scipy-notebook:latest | |
| #docker run --net=host -it -e ngrok/ngrok:latest | |
| USER root | |
| RUN apt-get update && \ | |
| apt-get install -y rclone nmap qbittorrent-nox binutils&& \ | |
| rm -rf /var/lib/apt/lists/* | |
| RUN curl -s https://ngrok-agent.s3.amazonaws.com/ngrok.asc \ | |
| | sudo tee /etc/apt/trusted.gpg.d/ngrok.asc >/dev/null \ | |
| && echo "deb https://ngrok-agent.s3.amazonaws.com buster main" \ | |
| | sudo tee /etc/apt/sources.list.d/ngrok.list \ | |
| && sudo apt update \ | |
| && sudo apt install ngrok | |
| # Set the working directory in the container | |
| WORKDIR /home/jovyan/work | |
| # Expose the port the notebook runs on | |
| EXPOSE 7860 | |
| RUN ngrok config add-authtoken 2geiiOYZ08hJuGE2NXhp5HMFKuQ_3YnDiPrbZKnp2BDZEMsFW | |
| # Copy the current directory contents into the container at /home/jovyan/work | |
| COPY . /home/jovyan/work | |
| CMD ["pip", "install", "tgcrypto", "pyrogram", "bs4", "requests", "html5lib"] | |
| # Run Jupyter Notebook upon container startup with token authentication enabled | |
| CMD ["jupyter", "notebook", "--ip='*'", "--port=7860", "--no-browser", "--allow-root", "--NotebookApp.token='amma1000'"] | |
| # 80 | |
| CMD ["ngrok", "http", "--domain=intimate-presumably-zebra.ngrok-free.app", "7860"] | |