File size: 1,241 Bytes
c94a1d7
 
e39eed2
eefc312
f422aa9
85748b9
f422aa9
6a68488
f422aa9
85748b9
 
 
 
 
 
 
c94a1d7
 
 
 
 
85748b9
c94a1d7
 
4546d9c
c94a1d7
349ceb9
 
85748b9
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# 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"]