forked from pelican-eggs/yolks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
44 lines (35 loc) · 2.23 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# ---------------------------------------------
# Steam Proton image
# ---------------------------------------------
FROM debian:bookworm-slim
LABEL author="EgoMaw" maintainer="[email protected]"
## install required packages
RUN dpkg --add-architecture i386
RUN apt-get update
RUN apt-get install -y --no-install-recommends wget iproute2 gnupg2 software-properties-common libntlm0 winbind xvfb xauth libncurses5-dev:i386 libncurses6 dbus libgdiplus lib32gcc-s1
RUN apt-get install -y --no-install-recommends alsa-tools libpulse0 pulseaudio libpulse-dev libasound2 libao-common gnutls-bin gnupg locales numactl cabextract curl
RUN apt-get install -y --no-install-recommends python3 python3-pip python3-setuptools pipx jq gettext-base
RUN useradd -d /home/container -m container
# Download Proton GE
RUN curl -sSL -o "proton.tar.gz" "$(curl -sSL https://api.github.com/repos/GloriousEggroll/proton-ge-custom/releases/latest | jq -r '.assets[] | select(.browser_download_url | endswith(".tar.gz")) | .browser_download_url')"
RUN tar -xzf proton.tar.gz -C /usr/local/bin/ --strip-components=1
RUN rm proton.tar.gz
# Proton Fix machine-id
RUN rm -f /etc/machine-id
RUN dbus-uuidgen --ensure=/etc/machine-id
RUN rm /var/lib/dbus/machine-id
RUN dbus-uuidgen --ensure
#Setup Protontricks
RUN pipx install protontricks
# Set up Winetricks
RUN wget -q -O /usr/sbin/winetricks https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks \
&& chmod +x /usr/sbin/winetricks
## install rcon
RUN rcon_link=$(curl -s https://api.github.com/repos/gorcon/rcon-cli/releases/latest | jq -r '.assets | map(select(.browser_download_url | contains("amd64_linux.tar.gz"))) | .[] | .browser_download_url') \
&& curl -sSL "$rcon_link" -o /tmp/rcon.tar.gz \
&& tar xvf /tmp/rcon.tar.gz --strip-components 1 -C /usr/local/bin/ --wildcards --no-anchored '*rcon' && rm /tmp/rcon.tar.gz
USER container
ENV USER=container HOME=/home/container
WORKDIR /home/container
COPY --chown=container --chmod=555 ./../entrypoint.sh /entrypoint.sh
CMD [ "/bin/bash", "/entrypoint.sh" ]