Skip to content

Commit 45cd5f6

Browse files
committed
approach change
1 parent b87c3da commit 45cd5f6

1 file changed

Lines changed: 8 additions & 25 deletions

File tree

  • kubernetes/dedicated-servers/darkMessiah
Lines changed: 8 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,17 @@
1-
# Dockerfile
2-
FROM ubuntu:22.04
1+
FROM cm2network/steamcmd:latest
32

4-
# 1. Instala dependencias y Wine
5-
RUN dpkg --add-architecture i386 \
6-
&& apt-get update \
7-
&& apt-get install -y --no-install-recommends \
8-
wine64 wine32 \
9-
wget unzip xvfb \
10-
lib32gcc-s1 lib32stdc++6 \
11-
&& rm -rf /var/lib/apt/lists/*
12-
13-
# 2. Crea usuario y directorios
3+
# 1. Crea el usuario "steam" y directorios
144
RUN useradd -m steam
155
USER steam
166
WORKDIR /home/steam
177

18-
# 3. Instala SteamCMD
19-
RUN mkdir -p steamcmd \
20-
&& cd steamcmd \
21-
&& wget -q https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz \
22-
-O steamcmd_linux.tar.gz \
23-
&& tar -xzf steamcmd_linux.tar.gz \
24-
&& rm steamcmd_linux.tar.gz \
25-
&& cd ..
26-
# 4. Descarga el servidor dedicado (Windows) vía SteamCMD
27-
RUN ./steamcmd/steamcmd.sh +login anonymous \
8+
# 2. Descarga el servidor dedicado (Windows)
9+
RUN steamcmd +login anonymous \
2810
+force_install_dir /home/steam/dm_srv \
29-
+app_update 2145 validate +quit
11+
+app_update 2145 validate \
12+
+quit
3013

31-
# 5. Copia el script de arranque
14+
# 3. Copia el script de arranque
3215
COPY --chown=steam:steam start.sh .
3316

34-
ENTRYPOINT ["bash", "start.sh"]
17+
ENTRYPOINT ["bash", "start.sh"]

0 commit comments

Comments
 (0)