File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,8 +20,15 @@ RUN dpkg --add-architecture i386 \
2020 && apt-get clean \
2121 && rm -rf /var/lib/apt/lists/* /var/log/*
2222
23+ RUN mkdir -p /steamcmd \
24+ && curl -sSL -o /tmp/steamcmd.tar.gz https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz \
25+ && tar -xzvf /tmp/steamcmd.tar.gz -C /steamcmd \
26+ && rm -rf /tmp/*
27+
2328RUN useradd -m -d /home/container container
2429
30+ RUN chown container:container -R /steamcmd
31+
2532USER container
2633
2734ENV HOME /home/container
Original file line number Diff line number Diff line change 22# #
33#
44# Variables
5- # TZ - Setup local timezone
65# GAME_PATH - Root game path
6+ # STEAMCMD_PATH - SteamCMD path
77#
88# #
99
1212 export GAME_PATH=/home/container;
1313fi
1414
15+ if [ -z ${STEAMCMD_PATH} ];
16+ then
17+ export STEAMCMD_PATH=" $GAME_PATH " ;
18+ fi
19+
1520cd " $GAME_PATH "
1621
1722sleep 1
@@ -23,15 +28,18 @@ export INTERNAL_IP=`ip route get 1 | awk '{print $NF;exit}'`
2328if [ ! -z ${SRCDS_APPID} ]; then
2429 if [ ! -z ${SRCDS_BETAID} ]; then
2530 if [ ! -z ${SRCDS_BETAPASS} ]; then
26- ./steamcmd/steamcmd.sh +login anonymous +force_install_dir /home/container +app_update ${SRCDS_APPID} -beta ${SRCDS_BETAID} -betapassword ${SRCDS_BETAPASS} +quit
31+ ./$STEAMCMD_PATH / steamcmd/steamcmd.sh +login anonymous +force_install_dir " $GAME_PATH " +app_update ${SRCDS_APPID} -beta ${SRCDS_BETAID} -betapassword ${SRCDS_BETAPASS} +quit
2732 else
28- ./steamcmd/steamcmd.sh +login anonymous +force_install_dir /home/container +app_update ${SRCDS_APPID} -beta ${SRCDS_BETAID} +quit
33+ ./$STEAMCMD_PATH / steamcmd/steamcmd.sh +login anonymous +force_install_dir " $GAME_PATH " +app_update ${SRCDS_APPID} -beta ${SRCDS_BETAID} +quit
2934 fi
3035 else
31- ./steamcmd/steamcmd.sh +login anonymous +force_install_dir /home/container +app_update ${SRCDS_APPID} +quit
36+ ./$STEAMCMD_PATH / steamcmd/steamcmd.sh +login anonymous +force_install_dir " $GAME_PATH " +app_update ${SRCDS_APPID} +quit
3237 fi
3338fi
3439
40+ # Use system libraries
41+ rm " ${GAME_PATH} /bin/libstdc++.so.6" | true
42+
3543# Replace Startup Variables
3644MODIFIED_STARTUP=` eval echo $( echo ${STARTUP} | sed -e ' s/{{/${/g' -e ' s/}}/}/g' ) `
3745echo " :$GAME_PATH $ ${MODIFIED_STARTUP} "
You can’t perform that action at this time.
0 commit comments