File tree Expand file tree Collapse file tree
kubernetes/dedicated-servers/darkMessiah Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
144RUN useradd -m steam
155USER steam
166WORKDIR /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
3215COPY --chown=steam:steam start.sh .
3316
34- ENTRYPOINT ["bash", "start.sh"]
17+ ENTRYPOINT ["bash", "start.sh"]
You can’t perform that action at this time.
0 commit comments