3v324v23 commited on
Commit
6f5a2c5
·
1 Parent(s): deea2e4

node updated to v18LTS

Browse files
.history/Dockerfile_20240520144550 ADDED
@@ -0,0 +1,75 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM nvidia/cuda:11.3.1-base-ubuntu20.04
2
+
3
+ ENV DEBIAN_FRONTEND=noninteractive TZ=Europe/Paris
4
+
5
+ # Remove any third-party apt sources to avoid issues with expiring keys.
6
+ # Install some basic utilities
7
+ RUN rm -f /etc/apt/sources.list.d/*.list && \
8
+ apt-get update && apt-get install -y --no-install-recommends \
9
+ curl \
10
+ ca-certificates \
11
+ sudo \
12
+ git \
13
+ git-lfs \
14
+ zip \
15
+ unzip \
16
+ htop \
17
+ bzip2 \
18
+ libx11-6 \
19
+ build-essential \
20
+ libsndfile-dev \
21
+ software-properties-common \
22
+ openssh-server \
23
+ fuse \
24
+ && rm -rf /var/lib/apt/lists/*
25
+
26
+ # Install rclone
27
+ RUN curl https://rclone.org/install.sh | bash
28
+
29
+ RUN add-apt-repository ppa:flexiondotorg/nvtop && \
30
+ apt-get upgrade -y && \
31
+ apt-get install -y --no-install-recommends nvtop
32
+
33
+ # Install Node.js 18 LTS
34
+ RUN curl -sL https://deb.nodesource.com/setup_18.x | bash - && \
35
+ apt-get install -y nodejs && \
36
+ npm install -g configurable-http-proxy
37
+
38
+ # Set up the Conda environment
39
+ ENV CONDA_AUTO_UPDATE_CONDA=false \
40
+ PATH=/root/miniconda/bin:$PATH
41
+ RUN curl -sLo ~/miniconda.sh https://repo.continuum.io/miniconda/Miniconda3-py39_4.10.3-Linux-x86_64.sh \
42
+ && chmod +x ~/miniconda.sh \
43
+ && ~/miniconda.sh -b -p /root/miniconda \
44
+ && rm ~/miniconda.sh \
45
+ && conda clean -ya
46
+
47
+ WORKDIR /root/app
48
+
49
+ # Python packages
50
+ RUN --mount=target=requirements.txt,source=requirements.txt \
51
+ pip install --no-cache-dir --upgrade -r requirements.txt
52
+
53
+ # Copy the current directory contents into the container at /root/app
54
+ COPY . /root/app
55
+
56
+ # Copy rclone configuration
57
+ COPY rclone.conf /root/.config/rclone/rclone.conf
58
+
59
+ RUN chmod +x start_server.sh
60
+
61
+ COPY login.html /root/miniconda/lib/python3.9/site-packages/jupyter_server/templates/login.html
62
+
63
+ # Set dark theme for JupyterLab
64
+ RUN mkdir -p /root/.jupyter/lab/user-settings/@jupyterlab/apputils-extension/ && \
65
+ echo '{ "theme": "JupyterLab Dark" }' > /root/.jupyter/lab/user-settings/@jupyterlab/apputils-extension/themes.jupyterlab-settings
66
+
67
+ ENV PYTHONUNBUFFERED=1 \
68
+ GRADIO_ALLOW_FLAGGING=never \
69
+ GRADIO_NUM_PORTS=1 \
70
+ GRADIO_SERVER_NAME=0.0.0.0 \
71
+ GRADIO_THEME=huggingface \
72
+ SYSTEM=spaces \
73
+ SHELL=/bin/bash
74
+
75
+ CMD ["./start_server.sh"]
.history/rclone_20240520144558.conf ADDED
File without changes
.history/rclone_20240520144605.conf ADDED
@@ -0,0 +1 @@
 
 
1
+ ## EMPTY
Dockerfile CHANGED
@@ -30,7 +30,8 @@ RUN add-apt-repository ppa:flexiondotorg/nvtop && \
30
  apt-get upgrade -y && \
31
  apt-get install -y --no-install-recommends nvtop
32
 
33
- RUN curl -sL https://deb.nodesource.com/setup_14.x | bash - && \
 
34
  apt-get install -y nodejs && \
35
  npm install -g configurable-http-proxy
36
 
@@ -52,6 +53,9 @@ RUN --mount=target=requirements.txt,source=requirements.txt \
52
  # Copy the current directory contents into the container at /root/app
53
  COPY . /root/app
54
 
 
 
 
55
  RUN chmod +x start_server.sh
56
 
57
  COPY login.html /root/miniconda/lib/python3.9/site-packages/jupyter_server/templates/login.html
 
30
  apt-get upgrade -y && \
31
  apt-get install -y --no-install-recommends nvtop
32
 
33
+ # Install Node.js 18 LTS
34
+ RUN curl -sL https://deb.nodesource.com/setup_18.x | bash - && \
35
  apt-get install -y nodejs && \
36
  npm install -g configurable-http-proxy
37
 
 
53
  # Copy the current directory contents into the container at /root/app
54
  COPY . /root/app
55
 
56
+ # Copy rclone configuration
57
+ COPY rclone.conf /root/.config/rclone/rclone.conf
58
+
59
  RUN chmod +x start_server.sh
60
 
61
  COPY login.html /root/miniconda/lib/python3.9/site-packages/jupyter_server/templates/login.html
rclone.conf ADDED
@@ -0,0 +1 @@
 
 
1
+ ## EMPTY