asv7j commited on
Commit
427e3f9
·
verified ·
1 Parent(s): 0350208

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +12 -5
Dockerfile CHANGED
@@ -1,8 +1,9 @@
1
  # Use the official Jupyter Docker image
2
  FROM jupyter/base-notebook:latest
3
 
4
- # Install additional packages
5
  RUN pip install --no-cache-dir \
 
6
  torch \
7
  tensorflow \
8
  transformers \
@@ -12,8 +13,14 @@ RUN pip install --no-cache-dir \
12
  scikit-learn \
13
  pandas
14
 
15
- # Expose the port Jupyter will run on
16
- EXPOSE 8888
17
 
18
- # Start Jupyter Notebook
19
- CMD ["start-notebook.sh", "--NotebookApp.token=''", "--host", "0.0.0.0", "--port=8888"]
 
 
 
 
 
 
 
1
  # Use the official Jupyter Docker image
2
  FROM jupyter/base-notebook:latest
3
 
4
+ # Install Jupyter Lab and additional packages
5
  RUN pip install --no-cache-dir \
6
+ jupyterlab \
7
  torch \
8
  tensorflow \
9
  transformers \
 
13
  scikit-learn \
14
  pandas
15
 
16
+ # Create a directory for the webpage
17
+ RUN mkdir -p /srv/jupyterlab
18
 
19
+ # Add the HTML file to the container
20
+ COPY index.html /srv/jupyterlab/index.html
21
+
22
+ # Expose the ports Jupyter Lab and web server will run on
23
+ EXPOSE 8888 8000
24
+
25
+ # Start both Jupyter Lab and the web server
26
+ CMD ["sh", "-c", "jupyter lab --ip=0.0.0.0 --port=8888 --no-browser --allow-root --NotebookApp.token='' & cd /srv/jupyterlab && python3 -m http.server 8000"]