Shinhati2023 commited on
Commit
68f4d7b
·
verified ·
1 Parent(s): e9fc181

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -8
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
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,12 +30,8 @@ RUN apt-get update && apt-get install -y \
30
  libdatetime-timezone-perl \
31
  && rm -rf /var/lib/apt/lists/*
32
 
33
- # 2. Install KasmVNC (SILENT MODE FIX)
34
- # We create a dummy config to bypass the interactive prompts
35
- RUN mkdir -p /etc/kasmvnc && \
36
- echo "network:\n protocol: http\n interface: 0.0.0.0\n websocket_port: 7860" > /etc/kasmvnc/kasmvnc.yaml
37
-
38
- # Download and install KasmVNC
39
  RUN wget https://github.com/kasmtech/KasmVNC/releases/download/v1.3.1/kasmvncserver_jammy_1.3.1_amd64.deb && \
40
  apt-get install -y ./kasmvncserver_*.deb || apt-get install -f -y && \
41
  rm kasmvncserver_*.deb
 
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
  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