File tree Expand file tree Collapse file tree
root/etc/s6-overlay/s6-rc.d/svc-xorg Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# syntax=docker/dockerfile:1
2+ FROM lscr.io/linuxserver/xvfb:debianbookworm AS xvfb
23FROM ghcr.io/linuxserver/baseimage-alpine:3.21 AS frontend
34
45RUN \
@@ -271,6 +272,7 @@ RUN \
271272# add local files
272273COPY /root /
273274COPY --from=frontend /buildout /usr/share/selkies/www
275+ COPY --from=xvfb / /
274276
275277# ports and volumes
276278EXPOSE 3000 3001
Original file line number Diff line number Diff line change 11# syntax=docker/dockerfile:1
2+ FROM lscr.io/linuxserver/xvfb:arm64v8-debianbookworm AS xvfb
23FROM ghcr.io/linuxserver/baseimage-alpine:arm64v8-3.21 AS frontend
34
45RUN \
@@ -269,6 +270,7 @@ RUN \
269270# add local files
270271COPY /root /
271272COPY --from=frontend /buildout /usr/share/selkies/www
273+ COPY --from=xvfb / /
272274
273275# ports and volumes
274276EXPOSE 3000 3001
Original file line number Diff line number Diff line change 11#!/usr/bin/with-contenv bash
22
3+ # Enable DRI3 support if detected
4+ VFBCOMMAND=""
5+ if ! which nvidia-smi && [ -e "/dev/dri/renderD128" ]; then
6+ VFBCOMMAND="-vfbdevice /dev/dri/renderD128"
7+ fi
8+ if [ ! -z ${DRINODE+x} ]; then
9+ VFBCOMMAND="-vfbdevice ${DRINODE}"
10+ fi
11+
312# Run Xvfb server with required extensions
413exec s6-setuidgid abc \
514 /usr/bin/Xvfb \
@@ -19,4 +28,5 @@ exec s6-setuidgid abc \
1928 -nolisten "tcp" \
2029 -ac \
2130 -noreset \
22- -shmem
31+ -shmem \
32+ ${VFBCOMMAND}
You can’t perform that action at this time.
0 commit comments