mvibin commited on
Commit
ad86147
·
verified ·
1 Parent(s): 631ad8e

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +12 -27
Dockerfile CHANGED
@@ -1,33 +1,18 @@
1
- # Start from the official Jupyter Scipy Notebook image.
2
- # This image includes Python and popular data science libraries.
3
- # You can find more images here: https://jupyter-docker-stacks.readthedocs.io/en/latest/using/selecting.html
4
  FROM jupyter/scipy-notebook:latest
5
-
6
- # Switch to the root user to install system-level packages
7
  USER root
8
-
9
- # Example of installing system packages using apt-get
10
- # Uncomment the following line to install packages like 'nano' or 'tree'
11
- # RUN apt-get update && apt-get install -y --no-install-recommends \
12
- # nano \
13
- # tree \
14
- # && rm -rf /var/lib/apt/lists/*
15
-
16
- # Install additional Python packages using pip
17
- # You can add your project-specific libraries here
18
  RUN pip install --no-cache-dir \
19
  scikit-learn \
20
  seaborn \
21
  tensorflow
22
-
23
- # You can also use a requirements.txt file for a cleaner setup
24
- # COPY --chown=${NB_UID}:${NB_GID} requirements.txt /tmp/
25
- # RUN pip install --no-cache-dir -r /tmp/requirements.txt
26
-
27
- ENV GRANT_SUDO=1
28
-
29
- # Expose the JupyterLab port
30
- EXPOSE 8888
31
-
32
- # The default command is already set in the base image to start JupyterLab.
33
- # No need to specify CMD or ENTRYPOINT unless you want to override the default behavior.
 
 
 
 
1
  FROM jupyter/scipy-notebook:latest
 
 
2
  USER root
3
+ # Install system packages
4
+ RUN apt-get update && apt-get install -y --no-install-recommends \
5
+ nano \
6
+ sudo \
7
+ && rm -rf /var/lib/apt/lists/*
8
+ # Install Python packages
 
 
 
 
9
  RUN pip install --no-cache-dir \
10
  scikit-learn \
11
  seaborn \
12
  tensorflow
13
+ # Enable dark mode
14
+ RUN mkdir -p /opt/conda/share/jupyter/lab/settings
15
+ RUN echo '{ "@jupyterlab/apputils-extension:themes": { "theme": "JupyterLab Dark" } }' > /opt/conda/share/jupyter/lab/settings/overrides.json
16
+ # Override the default command to run as root with --allow-root
17
+ CMD ["start-notebook.sh", "--NotebookApp.allow_root=True"]
18
+ EXPOSE 8888