Shinhati2023 commited on
Commit
efc6a71
·
verified ·
1 Parent(s): c8d5ae6

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -6
Dockerfile CHANGED
@@ -1,10 +1,10 @@
1
  # Use NVIDIA CUDA base for GPU support
2
  FROM nvidia/cuda:11.8.0-runtime-ubuntu22.04
3
 
4
- # Set non-interactive installation (This stops most prompts)
5
  ENV DEBIAN_FRONTEND=noninteractive
6
 
7
- # 1. Install System Dependencies & Kasm Dependencies
8
  RUN apt-get update && apt-get install -y \
9
  wget \
10
  curl \
@@ -30,10 +30,14 @@ RUN apt-get update && apt-get install -y \
30
  libdatetime-timezone-perl \
31
  && rm -rf /var/lib/apt/lists/*
32
 
33
- # 2. Install KasmVNC
34
- # We removed the 'mkdir' and 'echo' commands here to prevent the file conflict.
35
- RUN wget https://github.com/kasmtech/KasmVNC/releases/download/v1.3.1/kasmvncserver_jammy_1.3.1_amd64.deb && \
36
- apt-get install -y ./kasmvncserver_*.deb || apt-get install -f -y && \
 
 
 
 
37
  rm kasmvncserver_*.deb
38
 
39
  # 3. Install Python libraries
 
1
  # Use NVIDIA CUDA base for GPU support
2
  FROM nvidia/cuda:11.8.0-runtime-ubuntu22.04
3
 
4
+ # Set non-interactive installation
5
  ENV DEBIAN_FRONTEND=noninteractive
6
 
7
+ # 1. Install System Dependencies
8
  RUN apt-get update && apt-get install -y \
9
  wget \
10
  curl \
 
30
  libdatetime-timezone-perl \
31
  && rm -rf /var/lib/apt/lists/*
32
 
33
+ # 2. Install KasmVNC (THE FIX)
34
+ # We download the package first
35
+ RUN wget https://github.com/kasmtech/KasmVNC/releases/download/v1.3.1/kasmvncserver_jammy_1.3.1_amd64.deb
36
+
37
+ # We install it, but we pipe "2" into it to answer the question automatically if it asks.
38
+ # We also use 'mkdir' to ensure the folder exists, preventing one class of errors.
39
+ RUN mkdir -p /etc/kasmvnc && \
40
+ echo "2" | apt-get install -y ./kasmvncserver_*.deb || apt-get install -f -y && \
41
  rm kasmvncserver_*.deb
42
 
43
  # 3. Install Python libraries