File size: 684 Bytes
23cd553
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
32
33
FROM python:3.12.4-slim

RUN apt-get -y update &&\
    apt-get -y upgrade &&\
    apt-get -y autoremove &&\
    apt-get install -y sudo\
    vim\
    unzip\
    nano\ 
    htop\ 
    wget\ 
    net-tools\ 
    git

RUN ln -sf /usr/share/zoneinfo/UTC /etc/localtime &&\
    chsh -s /bin/bash root &&\
    pip3 install jupyterlab &&\
    jupyter lab --generate-config

COPY /jupyter_lab_config.py /root/.jupyter/jupyter_lab_config.py

RUN apt-get update &&\
    pip install --upgrade\
    jupyterlab\
    jupyterlab-git

RUN mkdir workspace
WORKDIR /workspace
VOLUME [ "/workspace" ]

ENV PASSWORD 'jupyter1234'

CMD jupyter lab --ip=0.0.0.0 --NotebookApp.token=${PASSWORD} --allow-root