Skip to content

Commit 088cf3b

Browse files
committed
add dri3 support bookworm
1 parent e93fa31 commit 088cf3b

3 files changed

Lines changed: 15 additions & 1 deletion

File tree

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# syntax=docker/dockerfile:1
2+
FROM lscr.io/linuxserver/xvfb:debianbookworm AS xvfb
23
FROM ghcr.io/linuxserver/baseimage-alpine:3.21 AS frontend
34

45
RUN \
@@ -271,6 +272,7 @@ RUN \
271272
# add local files
272273
COPY /root /
273274
COPY --from=frontend /buildout /usr/share/selkies/www
275+
COPY --from=xvfb / /
274276

275277
# ports and volumes
276278
EXPOSE 3000 3001

Dockerfile.aarch64

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# syntax=docker/dockerfile:1
2+
FROM lscr.io/linuxserver/xvfb:arm64v8-debianbookworm AS xvfb
23
FROM ghcr.io/linuxserver/baseimage-alpine:arm64v8-3.21 AS frontend
34

45
RUN \
@@ -269,6 +270,7 @@ RUN \
269270
# add local files
270271
COPY /root /
271272
COPY --from=frontend /buildout /usr/share/selkies/www
273+
COPY --from=xvfb / /
272274

273275
# ports and volumes
274276
EXPOSE 3000 3001

root/etc/s6-overlay/s6-rc.d/svc-xorg/run

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
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
413
exec 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}

0 commit comments

Comments
 (0)