Skip to content

Commit 30f2401

Browse files
committed
remove a bunch of stuff from docker image there probably should not have been there to start with. update golang version
1 parent 0707727 commit 30f2401

2 files changed

Lines changed: 12 additions & 22 deletions

File tree

Dockerfile

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.24.1-bookworm AS tools-builder
1+
FROM golang:1.24.4-bookworm AS tools-builder
22

33
COPY patcher patcher
44
RUN go build -C patcher
@@ -12,30 +12,26 @@ ARG DEBIAN_FRONTEND="noninteractive"
1212
RUN useradd -m steam && \
1313
echo steam steam/question select "I AGREE" | debconf-set-selections && \
1414
echo steam steam/license note '' | debconf-set-selections && \
15-
apt-get update -y && \
16-
apt-get upgrade -y && \
15+
apt-get update && \
16+
apt-get dist-upgrade -y && \
1717
apt-get install -y wget software-properties-common && \
18-
add-apt-repository multiverse && \
1918
dpkg --add-architecture i386 && \
2019
mkdir -pm755 /etc/apt/keyrings && \
2120
wget -O /etc/apt/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key && \
2221
wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/noble/winehq-noble.sources && \
22+
wget -O /usr/local/bin/winetricks https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks && \
23+
chmod +x /usr/local/bin/winetricks && \
2324
apt-get update -y && \
24-
apt-get install -y --install-recommends winehq-stable && \
25-
apt-get install -y gdebi-core libgl1:i386 libglx-mesa0:i386 steam steamcmd winbind xvfb cabextract && \
26-
apt-get remove -y --purge wget software-properties-common && \
25+
apt-get install -y --no-install-recommends steamcmd xvfb cabextract winehq-stable && \
26+
winecfg && \
27+
sleep 5 && \
28+
xvfb-run winetricks -q vcrun2022 && \
29+
rm -f /usr/local/bin/winetricks && \
30+
apt-get remove -y --purge wget xvfb cabextract software-properties-common && \
2731
apt-get clean autoclean && \
2832
apt-get autoremove -y && \
2933
rm -rf /var/lib/apt/lists/*
3034

31-
RUN curl -sSfLO https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks && \
32-
chmod +x winetricks && \
33-
mv -v winetricks /usr/local/bin
34-
35-
RUN winecfg && \
36-
sleep 5 && \
37-
xvfb-run winetricks -q vcrun2022
38-
3935
RUN ln -s /usr/games/steamcmd /usr/bin/steamcmd
4036

4137
VOLUME /server

entrypoint.sh

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,5 @@ echo "[entrypoint] Updating Return to Moria Dedicated Server files..."
1616
echo "[entrypoint] Patching subsystem in MoriaServer-Win64-Shipping.exe..."
1717
patcher /server/Moria/Binaries/Win64/MoriaServer-Win64-Shipping.exe
1818

19-
echo "[entrypoint] Removing /tmp/.X0-lock..."
20-
rm -f /tmp/.X0-lock 2>&1
21-
22-
echo "[entrypoint] Starting Xvfb"
23-
Xvfb :0 -screen 0 1280x1024x24 &
24-
2519
echo "[entrypoint] Launching wine64 Return to Moria..."
26-
exec env DISPLAY=:0.0 wine64 "/server/Moria/Binaries/Win64/MoriaServer-Win64-Shipping.exe" Moria 2>&1
20+
exec wine64 "/server/Moria/Binaries/Win64/MoriaServer-Win64-Shipping.exe" Moria 2>&1

0 commit comments

Comments
 (0)