# 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"]