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 <noreply@anthropic.com>
This commit is contained in:
@@ -34,10 +34,9 @@ RUN apt-get update && apt-get install -y \
|
|||||||
python3 \
|
python3 \
|
||||||
python3-pip \
|
python3-pip \
|
||||||
python3-venv \
|
python3-venv \
|
||||||
# VNC/noVNC
|
# VNC/noVNC (novnc installed from GitHub below)
|
||||||
tigervnc-standalone-server \
|
tigervnc-standalone-server \
|
||||||
tigervnc-common \
|
tigervnc-common \
|
||||||
novnc \
|
|
||||||
websockify \
|
websockify \
|
||||||
x11vnc \
|
x11vnc \
|
||||||
xvfb \
|
xvfb \
|
||||||
@@ -93,6 +92,11 @@ RUN apt-get update && apt-get install -y \
|
|||||||
&& apt-get clean \
|
&& apt-get clean \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& 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
|
# Create Python venv and install openconnect-sso with all dependencies
|
||||||
RUN python3 -m venv "$VIRTUAL_ENV" && \
|
RUN python3 -m venv "$VIRTUAL_ENV" && \
|
||||||
pip install --no-cache-dir --upgrade pip && \
|
pip install --no-cache-dir --upgrade pip && \
|
||||||
|
|||||||
Reference in New Issue
Block a user