@@ -104,6 +104,7 @@ RUN --mount=type=secret,id=SEL_PASSWD \
104
104
&& apt-get -qyy autoremove \
105
105
&& rm -rf /var/lib/apt/lists/* \
106
106
&& apt-get -qyy clean \
107
+ && pip install --no-cache-dir --upgrade --break-system-packages setuptools \
107
108
# #######################################
108
109
# noVNC exposes VNC through a web page #
109
110
# #######################################
@@ -117,9 +118,16 @@ RUN --mount=type=secret,id=SEL_PASSWD \
117
118
"https://github.com/novnc/websockify/archive/refs/${WEBSOCKIFY_SOURCE}/${WEBSOCKIFY_VERSION}.zip" \
118
119
&& unzip -x websockify.zip \
119
120
&& rm websockify.zip \
120
- && mv websockify-${WEBSOCKIFY_VERSION} /opt/bin/noVNC/utils/websockify \
121
+ # Setup dependencies
122
+ && cd websockify-${WEBSOCKIFY_VERSION} \
123
+ && python3 setup.py install \
124
+ # Move websockify and run to the noVNC directory
125
+ && mv websockify /opt/bin/noVNC/utils/websockify \
126
+ && mv run /opt/bin/noVNC/utils/websockify \
121
127
&& chmod +x /opt/bin/noVNC/utils/websockify/run \
122
- && rm -rf /opt/bin/noVNC/utils/websockify/docker /opt/bin/noVNC/utils/websockify/tests \
128
+ # Cleanup unnecessary files
129
+ && cd .. \
130
+ && rm -rf websockify-${WEBSOCKIFY_VERSION} \
123
131
# ========================================================================
124
132
# Run this command for executable file permissions for /dev/shm when #
125
133
# this is a "child" container running in Docker Desktop and WSL2 distro #
0 commit comments