Skip to content

Commit

Permalink
cleanup proton imager; added more packages for steam
Browse files Browse the repository at this point in the history
  • Loading branch information
gOOvER committed Jan 25, 2024
1 parent 48f201b commit bf304c2
Show file tree
Hide file tree
Showing 4 changed files with 129 additions and 25 deletions.
2 changes: 2 additions & 0 deletions steam/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ fi
# echo -e "${BLUE}----------------------------------------------------------------------------------${NC}"
#fi

if [ -f "/" ]; then

sleep 2

# Switch to the container's working directory
Expand Down
26 changes: 26 additions & 0 deletions steam/passwd.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
root:x:0:0:root:/root:/bin/bash
daemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin
bin:x:2:2:bin:/bin:/usr/sbin/nologin
sys:x:3:3:sys:/dev:/usr/sbin/nologin
sync:x:4:65534:sync:/bin:/bin/sync
games:x:5:60:games:/usr/games:/usr/sbin/nologin
man:x:6:12:man:/var/cache/man:/usr/sbin/nologin
lp:x:7:7:lp:/var/spool/lpd:/usr/sbin/nologin
mail:x:8:8:mail:/var/mail:/usr/sbin/nologin
news:x:9:9:news:/var/spool/news:/usr/sbin/nologin
uucp:x:10:10:uucp:/var/spool/uucp:/usr/sbin/nologin
proxy:x:13:13:proxy:/bin:/usr/sbin/nologin
www-data:x:33:33:www-data:/var/www:/usr/sbin/nologin
backup:x:34:34:backup:/var/backups:/usr/sbin/nologin
list:x:38:38:Mailing List Manager:/var/list:/usr/sbin/nologin
irc:x:39:39:ircd:/var/run/ircd:/usr/sbin/nologin
gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/usr/sbin/nologin
nobody:x:65534:65534:nobody:/nonexistent:/usr/sbin/nologin
systemd-timesync:x:100:102:systemd Time Synchronization,,,:/run/systemd:/bin/false
systemd-network:x:101:103:systemd Network Management,,,:/run/systemd/netif:/bin/false
systemd-resolve:x:102:104:systemd Resolver,,,:/run/systemd/resolve:/bin/false
systemd-bus-proxy:x:103:105:systemd Bus Proxy,,,:/run/systemd:/bin/false
syslog:x:104:108::/home/syslog:/bin/false
messagebus:x:106:109::/var/run/dbus:/bin/false
bind:x:108:112::/var/cache/bind:/bin/false
${USER_NAME}:x:${USER_ID}:${GROUP_ID}:${USER_NAME}:${HOME}:/bin/bash
112 changes: 87 additions & 25 deletions steam/proton/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,52 +7,110 @@ LABEL author="Torsten Widmann" maintainer="[email protected]"
LABEL org.opencontainers.image.source="https://github.com/gOOvER/own-pterodactyl-images"
LABEL org.opencontainers.image.licenses=MIT

ENV DEBIAN_FRONTEND noninteractive
ARG DEBIAN_FRONTEND=noninteractive
COPY sources.list /etc/apt/sources.list
RUN dpkg --add-architecture i386

RUN apt update \
&& apt -y install software-properties-common curl \
&& curl -o /etc/apt/sources.list https://gist.githubusercontent.com/gOOvER/0629311f86cbacc718a7ef2dee913454/raw/26fa9f1039323b4e3af0dc1c0e8299b7c83bc848/sources.list

RUN apt update \
RUN apt update \
&& apt -y upgrade

RUN apt install -y --no-install-recommends \
alsa-tools \
ca-certificates \
cabextract \
curl \
curl \
dbus \
dirmngr \
ffmpeg \
g++ \
gcc \
gcc-12-base \
gdb \
gettext \
git \
gnupg \
gnupg2 \
gnutls-bin \
iproute2 \
lib32gcc-s1 \
libao-common \
libasound2 \
libgdiplus \
libncurses5-dev:i386 \
libncurses6 \
libntlm0 \
libpulse-dev \
libpulse0 \
jq \
locales \
mesa-utils \
net-tools \
netcat-openbsd \
numactl \
pipx \
psmisc \
pulseaudio \
python3 \
python3-dev \
python3-pip \
python3-setuptools \
python3-venv \
pipx \
sed \
software-properties-common \
speex:i386 \
tar \
telnet \
tini \
tzdata \
virt-what \
wget \
winbind \
xauth \
xvfb
xvfb \
lib32gcc-s1 \
lib32stdc++6 \
lib32tinfo6 \
lib32z1 \
libao-common \
libasound2 \
libatk1.0-0 \
libatomic1 \
libc++-dev \
libc++1 \
libc6 \
libc6:i386 \
libcurl3-gnutls \
libcurl3-gnutls:i386 \
libcurl4 \
libcurl4-gnutls-dev \
libcurl4-gnutls-dev:i386 \
libcurl4:i386 \
libfontconfig \
libgcc-s1 \
libgcc1 \
libgconf-2-4 \
libgdiplus \
libgtk2.0-0:i386 \
libjemalloc2 \
libjemalloc2:i386 \
libncurses5-dev:i386 \
libncurses6 \
libnss-wrapper \
libnss3 \
libntlm0 \
libpangocairo-1.0-0 \
libpulse-dev \
libpulse0 \
libsdl1.2-compat \
libsdl1.2-compat:i386 \
libsdl1.2debian \
libsdl1.2debian:i386 \
libsdl2-2.0-0 \
libsdl2-2.0-0:i386 \
libssl3 \
libssl3:i386 \
libstdc++6 \
libstdc++6:i386 \
libtcmalloc-minimal4 \
libtcmalloc-minimal4:i386 \
libtinfo6:i386 \
libxcomposite1 \
libxcursor1 \
libxdamage1 \
libxi6 \
libxrandr2 \
libxss1 \
libxtst6

# Download Proton GE
RUN curl -sLOJ $(curl -s https://api.github.com/repos/GloriousEggroll/proton-ge-custom/releases/latest | grep browser_download_url | cut -d\" -f4 | egrep .tar.gz)
Expand All @@ -65,6 +123,8 @@ RUN dbus-uuidgen --ensure=/etc/machine-id
RUN rm /var/lib/dbus/machine-id
RUN dbus-uuidgen --ensure

RUN echo "* hard nice -20" | tee -a /etc/security/limits.conf

# Set up Winetricks
RUN wget -q -O /usr/sbin/winetricks https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks \
&& chmod +x /usr/sbin/winetricks
Expand All @@ -79,17 +139,19 @@ ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8

## install rcon
## install rcon
RUN cd /tmp/ \
&& curl -sSL https://github.com/gorcon/rcon-cli/releases/download/v0.10.3/rcon-0.10.3-amd64_linux.tar.gz > rcon.tar.gz \
&& tar xvf rcon.tar.gz \
&& mv rcon-0.10.3-amd64_linux/rcon /usr/local/bin/
#RUN cd /tmp/
#RUN curl -sLOJ $(curl -s https://api.github.com/repos/gorcon/rcon-cli/releases/latest | grep browser_download_url | cut -d\" -f4 | egrep amd64_linux.tar.gz)
#RUN tar -xzf rcon-*.tar.gz -C /usr/local/bin/ --strip-components=1
#RUN rm rcon-*.*


## Prepare NSS Wrapper for the entrypoint as a workaround for games requiring a valid UID
ENV NSS_WRAPPER_PASSWD=/tmp/passwd NSS_WRAPPER_GROUP=/tmp/group
RUN touch ${NSS_WRAPPER_PASSWD} ${NSS_WRAPPER_GROUP} \
&& chgrp 0 ${NSS_WRAPPER_PASSWD} ${NSS_WRAPPER_GROUP} \
&& chmod g+rw ${NSS_WRAPPER_PASSWD} ${NSS_WRAPPER_GROUP}
ADD passwd.template /passwd.template

## Setup user and working directory
RUN useradd -m -d /home/container -s /bin/bash container
USER container
Expand Down
14 changes: 14 additions & 0 deletions steam/sources.list
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
deb http://deb.debian.org/debian/ bookworm contrib main non-free non-free-firmware
# deb-src http://deb.debian.org/debian/ bookworm contrib main non-free non-free-firmware

deb http://deb.debian.org/debian/ bookworm-updates contrib main non-free non-free-firmware
# deb-src http://deb.debian.org/debian/ bookworm-updates contrib main non-free non-free-firmware

deb http://deb.debian.org/debian/ bookworm-proposed-updates contrib main non-free non-free-firmware
# deb-src http://deb.debian.org/debian/ bookworm-proposed-updates contrib main non-free non-free-firmware

deb http://deb.debian.org/debian/ bookworm-backports contrib main non-free non-free-firmware
# deb-src http://deb.debian.org/debian/ bookworm-backports contrib main non-free non-free-firmware

deb http://deb.debian.org/debian-security/ bookworm-security contrib main non-free non-free-firmware
# deb-src http://deb.debian.org/debian-security/ bookworm-security contrib main non-free non-free-firmware

0 comments on commit bf304c2

Please sign in to comment.