Pawitt commited on
Commit
da1800d
·
verified ·
1 Parent(s): 365cdd0

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +15 -11
Dockerfile CHANGED
@@ -1,10 +1,10 @@
1
  FROM nvidia/cuda:12.5.1-cudnn-devel-ubuntu20.04
2
 
3
  ENV DEBIAN_FRONTEND=noninteractive \
4
- TZ=Europe/Paris
5
 
6
  # Remove any third-party apt sources to avoid issues with expiring keys.
7
- # Install some basic utilities
8
  RUN rm -f /etc/apt/sources.list.d/*.list && \
9
  apt-get update && apt-get install -y --no-install-recommends \
10
  curl \
@@ -24,13 +24,17 @@ RUN rm -f /etc/apt/sources.list.d/*.list && \
24
  build-essential \
25
  libsndfile-dev \
26
  software-properties-common \
 
 
 
 
27
  && rm -rf /var/lib/apt/lists/*
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
- RUN curl -sL https://deb.nodesource.com/setup_21.x | bash - && \
34
  apt-get install -y nodejs && \
35
  npm install -g configurable-http-proxy
36
 
@@ -68,14 +72,14 @@ WORKDIR $HOME/app
68
  USER root
69
 
70
  # User Debian packages
71
- ## Security warning : Potential user code executed as root (build time)
72
  RUN --mount=target=/root/packages.txt,source=packages.txt \
73
  apt-get update && \
74
  xargs -r -a /root/packages.txt apt-get install -y --no-install-recommends \
75
  && rm -rf /var/lib/apt/lists/*
76
 
77
  RUN --mount=target=/root/on_startup.sh,source=on_startup.sh,readwrite \
78
- bash /root/on_startup.sh
79
 
80
  RUN mkdir /data && chown user:user /data
81
 
@@ -97,11 +101,11 @@ RUN chmod +x start_server.sh
97
  COPY --chown=user login.html /home/user/miniconda/lib/python3.9/site-packages/jupyter_server/templates/login.html
98
 
99
  ENV PYTHONUNBUFFERED=1 \
100
- GRADIO_ALLOW_FLAGGING=never \
101
- GRADIO_NUM_PORTS=1 \
102
- GRADIO_SERVER_NAME=0.0.0.0 \
103
- GRADIO_THEME=huggingface \
104
- SYSTEM=spaces \
105
- SHELL=/bin/bash
106
 
107
  CMD ["./start_server.sh"]
 
1
  FROM nvidia/cuda:12.5.1-cudnn-devel-ubuntu20.04
2
 
3
  ENV DEBIAN_FRONTEND=noninteractive \
4
+ TZ=Europe/Paris
5
 
6
  # Remove any third-party apt sources to avoid issues with expiring keys.
7
+ # Install some basic utilities and desktop environment components
8
  RUN rm -f /etc/apt/sources.list.d/*.list && \
9
  apt-get update && apt-get install -y --no-install-recommends \
10
  curl \
 
24
  build-essential \
25
  libsndfile-dev \
26
  software-properties-common \
27
+ xfce4 \
28
+ xfce4-goodies \
29
+ tigervnc-standalone-server \
30
+ openssh-client \
31
  && rm -rf /var/lib/apt/lists/*
32
 
33
  RUN add-apt-repository ppa:flexiondotorg/nvtop && \
34
  apt-get upgrade -y && \
35
  apt-get install -y --no-install-recommends nvtop
36
 
37
+ RUN curl -sL https://deb.nodesource.com/setup_21.x | bash - && \
38
  apt-get install -y nodejs && \
39
  npm install -g configurable-http-proxy
40
 
 
72
  USER root
73
 
74
  # User Debian packages
75
+ ## Security warning: Potential user code executed as root (build time)
76
  RUN --mount=target=/root/packages.txt,source=packages.txt \
77
  apt-get update && \
78
  xargs -r -a /root/packages.txt apt-get install -y --no-install-recommends \
79
  && rm -rf /var/lib/apt/lists/*
80
 
81
  RUN --mount=target=/root/on_startup.sh,source=on_startup.sh,readwrite \
82
+ bash /root/on_startup.sh
83
 
84
  RUN mkdir /data && chown user:user /data
85
 
 
101
  COPY --chown=user login.html /home/user/miniconda/lib/python3.9/site-packages/jupyter_server/templates/login.html
102
 
103
  ENV PYTHONUNBUFFERED=1 \
104
+ GRADIO_ALLOW_FLAGGING=never \
105
+ GRADIO_NUM_PORTS=1 \
106
+ GRADIO_SERVER_NAME=0.0.0.0 \
107
+ GRADIO_THEME=huggingface \
108
+ SYSTEM=spaces \
109
+ SHELL=/bin/bash
110
 
111
  CMD ["./start_server.sh"]