| # debian.sh --arch 'amd64' out/ 'bookworm' '@1763337600' |
| LABEL author=Torsten Widmann maintainer=info@goover.de |
| RUN /bin/sh -c dpkg --add-architecture i386 # buildkit |
| RUN /bin/sh -c apt update # buildkit |
| RUN /bin/sh -c apt install -y --no-install-recommends wget iproute2 gnupg2 software-properties-common libntlm0 winbind xvfb xauth libncurses5-dev:i386 libncurses6 dbus libgdiplus lib32gcc-s1 # buildkit |
| RUN /bin/sh -c apt install -y alsa-tools libpulse0 pulseaudio libpulse-dev libasound2 libao-common gnutls-bin gnupg locales cabextract curl python3 python3-pip python3-setuptools tini file pipx # buildkit |
| RUN /bin/sh -c 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)" # buildkit |
| RUN /bin/sh -c tar -xzf GE-Proton*.tar.gz -C /usr/local/bin/ --strip-components=1 # buildkit |
| RUN /bin/sh -c rm GE-Proton*.* # buildkit |
| RUN /bin/sh -c rm -f /etc/machine-id # buildkit |
| RUN /bin/sh -c dbus-uuidgen --ensure=/etc/machine-id # buildkit |
| RUN /bin/sh -c rm /var/lib/dbus/machine-id # buildkit |
| RUN /bin/sh -c dbus-uuidgen --ensure # buildkit |
| RUN /bin/sh -c pipx install protontricks # buildkit |
| RUN /bin/sh -c wget -q -O /usr/sbin/winetricks https://raw.githubusercontent.com/pelican-eggs/winetricks/master/src/winetricks && chmod +x /usr/sbin/winetricks # buildkit |
| RUN /bin/sh -c 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/ # buildkit |
| RUN /bin/sh -c useradd -m -d /home/container -s /bin/bash container # buildkit |
| USER container |
| ENV USER=container HOME=/home/container |
| WORKDIR /home/container |
| STOPSIGNAL SIGINT |
| COPY --chown=container:container ./../entrypoint.sh /entrypoint.sh # buildkit |
| RUN /bin/sh -c chmod +x /entrypoint.sh # buildkit |
| ENTRYPOINT ["/usr/bin/tini" "-g" "--"] |
| CMD ["/entrypoint.sh"] |
| USER root |
| ENV DEBIAN_FRONTEND=noninteractive |
| RUN /bin/sh -c apt update && apt upgrade -y && apt install -y --no-install-recommends unzip xvfb x11-utils ; rm -rf /var/lib/{apt,dpkg,cache,log}/ # buildkit |
| USER container |
| ENV TZ=UTC |
| COPY --chown=container:container ./entrypoint.sh /entrypoint.sh # buildkit |
| COPY --chown=container:container ./startup.sh /startup.sh # buildkit |
| RUN /bin/sh -c chmod +x /entrypoint.sh # buildkit |
| RUN /bin/sh -c chmod +x /startup.sh # buildkit |
| ENTRYPOINT ["/usr/bin/tini" "-g" "--"] |
| CMD ["/entrypoint.sh"] |