1+ # ---------------------------------------------
2+ # Steam Proton image
3+ # ---------------------------------------------
4+ FROM debian:bullseye-slim
5+
6+ LABEL author="Torsten Widmann" maintainer="info@goover.de"
7+
8+ # # install required packages
9+ RUN dpkg --add-architecture i386
10+ RUN apt update
11+ RUN apt install -y --no-install-recommends wget iproute2 gnupg2 software-properties-common libntlm0 winbind xvfb xauth libncurses5-dev:i386 libncurses6 dbus libgdiplus lib32gcc-s1
12+ RUN apt install -y alsa-tools libpulse0 pulseaudio libpulse-dev libasound2 libao-common gnutls-bin gnupg locales numactl cabextract curl python3 python3-pip python3-setuptools tini file
13+ RUN useradd -d /home/container -m container
14+
15+ # Download Proton GE
16+ RUN curl -sLOJ "$(curl -s https://api.github.com/repos/GloriousEggroll/proton-ge-custom/releases/tags/GE-Proton8-32 | grep browser_download_url | cut -d\" -f4 | egrep .tar.gz)"
17+ RUN tar -xzf GE-Proton*.tar.gz -C /usr/local/bin/ --strip-components=1
18+ RUN rm GE-Proton*.*
19+
20+ # Proton Fix machine-id
21+ RUN rm -f /etc/machine-id
22+ RUN dbus-uuidgen --ensure=/etc/machine-id
23+ RUN rm /var/lib/dbus/machine-id
24+ RUN dbus-uuidgen --ensure
25+
26+ # Setup Protontricks
27+ RUN python3 -m pip install protontricks
28+
29+ # Set up Winetricks
30+ RUN wget -q -O /usr/sbin/winetricks https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks \
31+ && chmod +x /usr/sbin/winetricks
32+
33+ # # install rcon
34+ RUN cd /tmp/ \
35+ && curl -sSL https://github.com/gorcon/rcon-cli/releases/download/v0.10.3/rcon-0.10.3-amd64_linux.tar.gz > rcon.tar.gz \
36+ && tar xvf rcon.tar.gz \
37+ && mv rcon-0.10.3-amd64_linux/rcon /usr/local/bin/
38+
39+ USER container
40+ ENV USER=container HOME=/home/container
41+ WORKDIR /home/container
42+
43+ STOPSIGNAL SIGINT
44+
45+ COPY --chown=container:container ./../entrypoint.sh /entrypoint.sh
46+ RUN chmod +x /entrypoint.sh
47+ ENTRYPOINT ["/usr/bin/tini" , "-g" , "--" ]
48+ CMD ["/entrypoint.sh" ]
0 commit comments