FROM debian:trixie ENV DEBIAN_FRONTEND=noninteractive ENV LANG=en_US.UTF-8 ENV LANGUAGE=en_US:en ENV LC_ALL=en_US.UTF-8 # Set locale RUN apt-get update && apt-get install -y --no-install-recommends \ locales && \ apt-get clean && \ sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && \ locale-gen # Install Wayland-specific packages RUN apt-get update && apt-get install -y --no-install-recommends \ dbus \ libwayland-client0 \ libwayland-egl1 && \ apt-get clean # Install X-specific packages RUN apt-get update && apt-get install -y --no-install-recommends \ dbus-x11 && \ apt-get clean # Add contrib, default is only main RUN sed -i 's/^Components:.*/Components: main contrib/g' /etc/apt/sources.list.d/debian.sources # Add 32-bit arch for Steam libraries RUN dpkg --add-architecture i386 # Install Steam RUN apt-get update && apt-get install -y --no-install-recommends \ steam-installer \ pciutils \ libfontconfig1:i386 && \ apt-get clean # Additional # TODO: What is really needed? RUN apt-get update && apt-get install -y --no-install-recommends \ vulkan-tools \ mesa-utils \ x11-xserver-utils \ libvulkan1 \ mesa-vulkan-drivers && \ apt-get clean # TODO: Does `-storebeta` even work? # https://developer.valvesoftware.com/wiki/Command_line_options_(Steam) CMD ["/usr/games/steam", "-storebeta"] # xhost + # docker run -it --name steam -e XDG_RUNTIME_DIR=$XDG_RUNTIME_DIR -e WAYLAND_DISPLAY=$WAYLAND_DISPLAY -v $XDG_RUNTIME_DIR/$WAYLAND_DISPLAY:$XDG_RUNTIME_DIR/$WAYLAND_DISPLAY -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix --privileged steam:trixie # xhost - # See also https://git.sr.ht/~whynothugo/steam-container