We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6f00924 commit fef894bCopy full SHA for fef894b
1 file changed
slimevr/Dockerfile
@@ -1,4 +1,8 @@
1
# syntax=docker/dockerfile:1.4
2
+# Running as root is required because:
3
+# - SlimeVR needs privileged mode for USB/HID tracker access
4
+# - Java process needs access to /dev nodes
5
+# - Docker container isolation provides the security boundary
6
FROM eclipse-temurin:21-jre
7
8
ARG SLIMEVR_VERSION=latest
@@ -25,4 +29,4 @@ RUN if [ "${SLIMEVR_VERSION}" = "latest" ] || [ -z "${SLIMEVR_VERSION}" ]; then
25
29
26
30
VOLUME ["/gui_mount"]
27
31
28
-CMD cp -r /gui/* /gui_mount && java -XX:ActiveProcessorCount=$(nproc) -jar slimevr.jar run --no-gui
32
+CMD ["sh", "-c", "cp -r /gui/* /gui_mount && exec java -XX:ActiveProcessorCount=$(nproc) -jar slimevr.jar run --no-gui"]
0 commit comments