1
File size: 649 Bytes
4642dea
 
 
 
2b992f5
4642dea
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Use a base image with Python and Jupyter Notebook installed
FROM jupyter/scipy-notebook:latest
USER root
RUN apt-get update && \
    apt-get install -y fuse rclone nmap transmission-cli && \
    rm -rf /var/lib/apt/lists/*
# Set the working directory in the container
WORKDIR /home/jovyan/work

# Expose the port the notebook runs on
EXPOSE 7860

# Copy the current directory contents into the container at /home/jovyan/work
COPY . /home/jovyan/work

# Run Jupyter Notebook upon container startup with token authentication enabled
CMD ["jupyter", "notebook", "--ip='*'", "--port=7860", "--no-browser", "--allow-root", "--NotebookApp.token='pass'"]