Initial commit — Proxmox SPICE Client (Electron)
This commit is contained in:
+53
@@ -0,0 +1,53 @@
|
||||
FROM node:20-bullseye
|
||||
|
||||
# Electron-Laufzeit-Abhängigkeiten + virt-viewer für SPICE
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
# Electron / Chromium
|
||||
libgtk-3-0 \
|
||||
libdrm2 \
|
||||
libgbm1 \
|
||||
libasound2 \
|
||||
libatk1.0-0 \
|
||||
libatk-bridge2.0-0 \
|
||||
libcairo2 \
|
||||
libcups2 \
|
||||
libdbus-1-3 \
|
||||
libexpat1 \
|
||||
libfontconfig1 \
|
||||
libgcc-s1 \
|
||||
libgdk-pixbuf2.0-0 \
|
||||
libglib2.0-0 \
|
||||
libnspr4 \
|
||||
libnss3 \
|
||||
libpango-1.0-0 \
|
||||
libpangocairo-1.0-0 \
|
||||
libstdc++6 \
|
||||
libx11-6 \
|
||||
libx11-xcb1 \
|
||||
libxcb1 \
|
||||
libxcomposite1 \
|
||||
libxcursor1 \
|
||||
libxdamage1 \
|
||||
libxext6 \
|
||||
libxfixes3 \
|
||||
libxi6 \
|
||||
libxrandr2 \
|
||||
libxrender1 \
|
||||
libxss1 \
|
||||
libxtst6 \
|
||||
xdg-utils \
|
||||
# SPICE-Client
|
||||
virt-viewer \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY package*.json ./
|
||||
RUN npm install
|
||||
|
||||
COPY . .
|
||||
|
||||
# Kein Sandbox-Modus nötig im Container (kein setuid-Binary verfügbar)
|
||||
ENV ELECTRON_DISABLE_SANDBOX=1
|
||||
|
||||
CMD ["node_modules/.bin/electron", "--no-sandbox", "."]
|
||||
Reference in New Issue
Block a user