From 8c9ebea4891b4f372d477adc49f9bb062aff7ee2 Mon Sep 17 00:00:00 2001 From: alexz Date: Sun, 18 Jan 2026 01:04:45 +0000 Subject: [PATCH] fix: Install noVNC from GitHub instead of apt package The apt novnc package (v1.0.0) has module export issues causing JavaScript errors. Switch to noVNC v1.4.0 from GitHub which has proper ES6 module exports. Co-Authored-By: Claude Opus 4.5 --- apps/cistech-tunnel/build/Dockerfile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/apps/cistech-tunnel/build/Dockerfile b/apps/cistech-tunnel/build/Dockerfile index 3e9e837..fb9d96e 100644 --- a/apps/cistech-tunnel/build/Dockerfile +++ b/apps/cistech-tunnel/build/Dockerfile @@ -34,10 +34,9 @@ RUN apt-get update && apt-get install -y \ python3 \ python3-pip \ python3-venv \ - # VNC/noVNC + # VNC/noVNC (novnc installed from GitHub below) tigervnc-standalone-server \ tigervnc-common \ - novnc \ websockify \ x11vnc \ xvfb \ @@ -93,6 +92,11 @@ RUN apt-get update && apt-get install -y \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* +# Install noVNC from GitHub (v1.4.0 - stable release with ES6 modules) +RUN curl -fsSL https://github.com/novnc/noVNC/archive/refs/tags/v1.4.0.tar.gz | tar -xz -C /usr/share/ \ + && mv /usr/share/noVNC-1.4.0 /usr/share/novnc \ + && ln -sf /usr/share/novnc/vnc.html /usr/share/novnc/index.html + # Create Python venv and install openconnect-sso with all dependencies RUN python3 -m venv "$VIRTUAL_ENV" && \ pip install --no-cache-dir --upgrade pip && \