Last active
June 26, 2023 17:14
-
-
Save GamePlayer-8/7f2c1c16dbb8e058e99c0b1bb7feafeb to your computer and use it in GitHub Desktop.
Steam Docker Container
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu | |
USER root | |
ENV DISPLAY="192.168.50.1:0.0" | |
ENV PULSE_SERVER="192.168.50.1" | |
ENV TZ=Europe/Warsaw | |
ENV HOME /home/steam | |
RUN dpkg --add-architecture i386 | |
RUN apt update && apt upgrade -y && apt-get install -y \ | |
wget \ | |
libgl1-mesa-dri \ | |
libgl1-mesa-glx \ | |
mesa-utils \ | |
libpulse0 \ | |
libdbus-1-3 \ | |
xdg-utils \ | |
libnss3 \ | |
libxkbcommon-x11-0 \ | |
libgbm-dev \ | |
curl | |
RUN wget --no-check-certificate https://steamcdn-a.akamaihd.net/client/installer/steam.deb && \ | |
apt install -y --install-recommends ./steam.deb && \ | |
rm -f steam.deb | |
RUN apt update && apt install -y dbus-x11 steam-libs-amd64 steam-libs-i386 | |
RUN adduser --disabled-password --gecos "" steam | |
RUN apt install -y language-pack-en pciutils udev at-spi2-core | |
RUN apt install -y ibus | |
RUN mkdir /home/steam/dumps && \ | |
ln -s /home/steam/dumps /tmp/dumps | |
VOLUME /home/steam | |
ENV STEAM_RUNTIME_PREFER_HOST_LIBRARIES=0 | |
ENV STEAM_RUNTIME=0 | |
CMD ["sh", "-c", "if ! [ -d /home/steam/dumps ]; then mkdir /home/steam/dumps; fi && chown -R steam:steam /home/steam && sudo -i -u steam sh -c 'dbus-launch steam'"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment