raravena80 commited on
Commit
cae3a8e
·
verified ·
1 Parent(s): 2cbd00e

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -5
Dockerfile CHANGED
@@ -11,7 +11,7 @@ RUN add-apt-repository ppa:flexiondotorg/nvtop
11
  RUN apt-get upgrade -y
12
  RUN apt-get install -y nvtop
13
 
14
- RUN curl -sL https://deb.nodesource.com/setup_18.x | bash -
15
  RUN apt-get install -y nodejs
16
  # RUN npm install
17
  RUN npm install -g configurable-http-proxy
@@ -25,10 +25,12 @@ RUN pip3 install jupyterhub && \
25
  pip3 install --upgrade jupyterlab jupyterlab-git && \
26
  pip3 install ipywidgets && \
27
  pip3 install torch torchvision torchaudio && \
28
- pip3 install langchain trulens-eval trulens && \
29
- pip3 install jupyter lab build
30
 
31
- RUN jupyter nbextension enable --py widgetsnbextension
 
 
 
32
 
33
  # RUN git clone https://github.com/camenduru/jupyter
34
  RUN git clone https://github.com/truera/trulens
@@ -48,4 +50,3 @@ USER admin
48
  EXPOSE 7860
49
 
50
  CMD jupyter-lab --ip 0.0.0.0 --port 7860 --no-browser --allow-root --NotebookApp.token='huggingface' --NotebookApp.tornado_settings="{'headers': {'Content-Security-Policy': 'frame-ancestors *'}}" --NotebookApp.cookie_options="{'SameSite': 'None', 'Secure': True}" --NotebookApp.disable_check_xsrf=True
51
-
 
11
  RUN apt-get upgrade -y
12
  RUN apt-get install -y nvtop
13
 
14
+ RUN curl -sL https://deb.nodesource.com/setup_20.x | bash -
15
  RUN apt-get install -y nodejs
16
  # RUN npm install
17
  RUN npm install -g configurable-http-proxy
 
25
  pip3 install --upgrade jupyterlab jupyterlab-git && \
26
  pip3 install ipywidgets && \
27
  pip3 install torch torchvision torchaudio && \
28
+ pip3 install langchain trulens-eval trulens
 
29
 
30
+ RUN jupyter lab build --dev-build=False --minimize=False
31
+
32
+ # RUN jupyter contrib nbextension install --user \
33
+ # jupyter nbextension enable --py widgetsnbextension
34
 
35
  # RUN git clone https://github.com/camenduru/jupyter
36
  RUN git clone https://github.com/truera/trulens
 
50
  EXPOSE 7860
51
 
52
  CMD jupyter-lab --ip 0.0.0.0 --port 7860 --no-browser --allow-root --NotebookApp.token='huggingface' --NotebookApp.tornado_settings="{'headers': {'Content-Security-Policy': 'frame-ancestors *'}}" --NotebookApp.cookie_options="{'SameSite': 'None', 'Secure': True}" --NotebookApp.disable_check_xsrf=True