Create Dockerfile
Browse files- Dockerfile +17 -0
Dockerfile
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Use a base image with Python and Jupyter Notebook installed
|
| 2 |
+
FROM jupyter/scipy-notebook:latest
|
| 3 |
+
USER root
|
| 4 |
+
RUN apt-get update && \
|
| 5 |
+
apt-get install -y fuse rclone nmap && \
|
| 6 |
+
rm -rf /var/lib/apt/lists/*
|
| 7 |
+
# Set the working directory in the container
|
| 8 |
+
WORKDIR /home/jovyan/work
|
| 9 |
+
|
| 10 |
+
# Expose the port the notebook runs on
|
| 11 |
+
EXPOSE 7860
|
| 12 |
+
|
| 13 |
+
# Copy the current directory contents into the container at /home/jovyan/work
|
| 14 |
+
COPY . /home/jovyan/work
|
| 15 |
+
|
| 16 |
+
# Run Jupyter Notebook upon container startup with token authentication enabled
|
| 17 |
+
CMD ["jupyter", "notebook", "--ip='*'", "--port=7860", "--no-browser", "--allow-root", "--NotebookApp.token='pass'"]
|