use TurboVNC with xfce4 instead of Xvfb+X11vnc, 1.36GB -> 1.51GB total
This commit is contained in:
parent
c5f0c20322
commit
4cf2718077
2 changed files with 22 additions and 18 deletions
17
Dockerfile
17
Dockerfile
|
|
@ -12,15 +12,21 @@ ARG DEBIAN_FRONTEND=noninteractive
|
|||
RUN apt-get update \
|
||||
&& apt-get install -y --no-install-recommends curl ca-certificates gnupg \
|
||||
&& mkdir -p /etc/apt/keyrings \
|
||||
# Node.js
|
||||
&& curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg \
|
||||
&& echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list \
|
||||
# TurboVNC & VirtualGL instead of Xvfb+X11vnc
|
||||
&& curl -fsSL https://packagecloud.io/dcommander/virtualgl/gpgkey | gpg --dearmor -o /etc/apt/trusted.gpg.d/VirtualGL.gpg \
|
||||
&& curl -fsSL https://packagecloud.io/dcommander/turbovnc/gpgkey | gpg --dearmor -o /etc/apt/trusted.gpg.d/TurboVNC.gpg \
|
||||
&& curl -fssl https://raw.githubusercontent.com/VirtualGL/repo/main/VirtualGL.list > /etc/apt/sources.list.d/VirtualGL.list \
|
||||
&& curl -fssl https://raw.githubusercontent.com/TurboVNC/repo/main/TurboVNC.list > /etc/apt/sources.list.d/TurboVNC.list \
|
||||
# update lists and install
|
||||
&& apt-get update \
|
||||
&& apt-get install --no-install-recommends -y \
|
||||
nodejs \
|
||||
xvfb \
|
||||
x11vnc \
|
||||
tini \
|
||||
virtualgl turbovnc xfce4 \
|
||||
novnc websockify \
|
||||
tini \
|
||||
nodejs \
|
||||
dos2unix \
|
||||
python3-pip \
|
||||
# RUN npx patchright install-deps chromium
|
||||
|
|
@ -38,6 +44,9 @@ RUN apt-get update \
|
|||
libpango-1.0-0 \
|
||||
libcairo2 \
|
||||
libasound2 \
|
||||
# needed for TurboVNC if not installing xfce4:
|
||||
# libxdamage1 \
|
||||
# libxrandr2 \
|
||||
&& apt-get autoremove -y \
|
||||
# https://www.perplexity.ai/search/what-files-do-i-need-to-remove-imjwdphNSUWK98WzsmQswA
|
||||
&& apt-get clean \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue