This commit is contained in:
Amazed 2023-07-22 18:38:35 +02:00
commit 929527359c
2 changed files with 28 additions and 0 deletions

23
Dockerfile Normal file
View File

@ -0,0 +1,23 @@
FROM ubuntu:22.04
RUN apt-get update
RUN apt-get install -y wget cabextract
RUN wget -O /etc/apt/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key
RUN wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/jammy/winehq-jammy.sources
RUN dpkg --add-architecture i386
RUN apt-get update
RUN apt-get install -y winehq-stable xvfb
RUN wget https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks \
-O /usr/local/bin/winetricks && chmod +x /usr/local/bin/winetricks
ENV DISPLAY ":0"
ENV WINEARCH "win32"
RUN xvfb-run wine wineboot && xvfb-run --auto-servernum winetricks -q vcrun2010 dotnet472 directplay
ADD giants_data /giants
WORKDIR /giants
ADD start.sh /giants
ENTRYPOINT ./start.sh

5
start.sh Executable file
View File

@ -0,0 +1,5 @@
#!/bin/bash
xvfb-run --auto-servernum wine regedit nullrenderer.reg
xvfb-run --auto-servernum winetricks -f directplay
WINEDEBUG="+dpnet" xvfb-run --auto-servernum wine GiantsDedicated.exe -noplay -nostream -dedicated current.gdf 2>&1 | grep -v "Zero length vector"