Spaces:
Runtime error
Runtime error
sjs
Browse files- Dockerfile +14 -13
- start_server.sh +1 -1
Dockerfile
CHANGED
@@ -28,9 +28,9 @@ RUN add-apt-repository ppa:flexiondotorg/nvtop && \
|
|
28 |
apt-get upgrade -y && \
|
29 |
apt-get install -y --no-install-recommends nvtop
|
30 |
|
31 |
-
RUN curl -sL https://deb.nodesource.com/setup_14.x | bash - && \
|
32 |
-
|
33 |
-
|
34 |
|
35 |
# Create a working directory
|
36 |
WORKDIR /app
|
@@ -53,8 +53,9 @@ RUN curl -sLo ~/miniconda.sh https://repo.continuum.io/miniconda/Miniconda3-py39
|
|
53 |
&& chmod +x ~/miniconda.sh \
|
54 |
&& ~/miniconda.sh -b -p ~/miniconda \
|
55 |
&& rm ~/miniconda.sh \
|
56 |
-
&& conda clean -ya
|
57 |
-
|
|
|
58 |
WORKDIR $HOME/app
|
59 |
|
60 |
#######################################
|
@@ -81,14 +82,14 @@ RUN tar -xf vscode_cli.tar.gz
|
|
81 |
# RUN echo *
|
82 |
RUN cp code /usr/local/bin
|
83 |
RUN chmod +x /usr/local/bin/code
|
84 |
-
RUN apt-get install wget gpg && \
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
|
93 |
|
94 |
#######################################
|
|
|
28 |
apt-get upgrade -y && \
|
29 |
apt-get install -y --no-install-recommends nvtop
|
30 |
|
31 |
+
# RUN curl -sL https://deb.nodesource.com/setup_14.x | bash - && \
|
32 |
+
# apt-get install -y nodejs && \
|
33 |
+
# npm install -g configurable-http-proxy
|
34 |
|
35 |
# Create a working directory
|
36 |
WORKDIR /app
|
|
|
53 |
&& chmod +x ~/miniconda.sh \
|
54 |
&& ~/miniconda.sh -b -p ~/miniconda \
|
55 |
&& rm ~/miniconda.sh \
|
56 |
+
&& conda clean -ya \
|
57 |
+
&& conda install npm\
|
58 |
+
&& npm install -g configurable-http-proxy
|
59 |
WORKDIR $HOME/app
|
60 |
|
61 |
#######################################
|
|
|
82 |
# RUN echo *
|
83 |
RUN cp code /usr/local/bin
|
84 |
RUN chmod +x /usr/local/bin/code
|
85 |
+
# RUN apt-get install wget gpg && \
|
86 |
+
# wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > packages.microsoft.gpg && \
|
87 |
+
# install -D -o root -g root -m 644 packages.microsoft.gpg /etc/apt/keyrings/packages.microsoft.gpg && \
|
88 |
+
# sh -c 'echo "deb [arch=amd64,arm64,armhf signed-by=/etc/apt/keyrings/packages.microsoft.gpg] https://packages.microsoft.com/repos/code stable main" > /etc/apt/sources.list.d/vscode.list' && \
|
89 |
+
# rm -f packages.microsoft.gpg && \
|
90 |
+
# apt-get install -y apt-transport-https && \
|
91 |
+
# apt-get update && \
|
92 |
+
# apt-get install code -y
|
93 |
|
94 |
|
95 |
#######################################
|
start_server.sh
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
#!/bin/bash
|
2 |
|
3 |
-
code --install-extension ms-toolsai.jupyter ms-toolsai.jupyter
|
4 |
# https://az764295.vo.msecnd.net/insider/35419fc016b8d3d5dbc59aa11a0be957b0897309/code-insiders_1.84.0-1698404571_amd64.deb
|
5 |
# https://code.visualstudio.com/sha/download?build=stable&os=cli-alpine-x64
|
6 |
JUPYTER_TOKEN="${JUPYTER_TOKEN:=huggingface}"
|
|
|
1 |
#!/bin/bash
|
2 |
|
3 |
+
# code --install-extension ms-toolsai.jupyter ms-toolsai.jupyter
|
4 |
# https://az764295.vo.msecnd.net/insider/35419fc016b8d3d5dbc59aa11a0be957b0897309/code-insiders_1.84.0-1698404571_amd64.deb
|
5 |
# https://code.visualstudio.com/sha/download?build=stable&os=cli-alpine-x64
|
6 |
JUPYTER_TOKEN="${JUPYTER_TOKEN:=huggingface}"
|