File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -67,9 +67,9 @@ if [ -z ${AUTO_UPDATE} ] || [ "${AUTO_UPDATE}" == "1" ]; then
67
67
# Update Source Server
68
68
if [ ! -z ${SRCDS_APPID} ]; then
69
69
if [ " ${STEAM_USER} " == " anonymous" ]; then
70
- ./steamcmd/steamcmd.sh +force_install_dir /home/container +login ${STEAM_USER} ${STEAM_PASS} ${STEAM_AUTH} $( [[ " ${WINDOWS_INSTALL} " == " 1" ]] && printf %s ' +@sSteamCmdForcePlatformType windows' ) +app_update ${SRCDS_APPID} $( [[ -z ${SRCDS_BETAID} ]] || printf %s " -beta ${SRCDS_BETAID} " ) $( [[ -z ${SRCDS_BETAPASS} ]] || printf %s " -betapassword ${SRCDS_BETAPASS} " ) $( [[ -z ${HLDS_GAME} ]] || printf %s " +app_set_config 90 mod ${HLDS_GAME} " ) $ ( [[ -z ${VALIDATE} ]] || printf %s " validate" ) +quit
70
+ ./steamcmd/steamcmd.sh +force_install_dir /home/container +login ${STEAM_USER} ${STEAM_PASS} ${STEAM_AUTH} $( [[ " ${WINDOWS_INSTALL} " == " 1" ]] && printf %s ' +@sSteamCmdForcePlatformType windows' ) +app_update ${SRCDS_APPID} $( [[ -z ${SRCDS_BETAID} ]] || printf %s " -beta ${SRCDS_BETAID} " ) $( [[ -z ${SRCDS_BETAPASS} ]] || printf %s " -betapassword ${SRCDS_BETAPASS} " ) $( [[ -z ${HLDS_GAME} ]] || printf %s " +app_set_config 90 mod ${HLDS_GAME} " ) ${INSTALL_FLAGS} $ ( [[ " ${VALIDATE} " == " 1 " ]] && printf %s ' validate' ) +quit
71
71
else
72
- numactl --physcpubind=+0 ./steamcmd/steamcmd.sh +force_install_dir /home/container +login ${STEAM_USER} ${STEAM_PASS} ${STEAM_AUTH} $( [[ " ${WINDOWS_INSTALL} " == " 1" ]] && printf %s ' +@sSteamCmdForcePlatformType windows' ) +app_update ${SRCDS_APPID} $( [[ -z ${SRCDS_BETAID} ]] || printf %s " -beta ${SRCDS_BETAID} " ) $( [[ -z ${SRCDS_BETAPASS} ]] || printf %s " -betapassword ${SRCDS_BETAPASS} " ) $( [[ -z ${HLDS_GAME} ]] || printf %s " +app_set_config 90 mod ${HLDS_GAME} " ) $( [[ -z ${VALIDATE} ]] || printf %s " validate" ) +quit
72
+ numactl --physcpubind=+0 ./steamcmd/steamcmd.sh +force_install_dir /home/container +login ${STEAM_USER} ${STEAM_PASS} ${STEAM_AUTH} $( [[ " ${WINDOWS_INSTALL} " == " 1" ]] && printf %s ' +@sSteamCmdForcePlatformType windows' ) +app_update ${SRCDS_APPID} $( [[ -z ${SRCDS_BETAID} ]] || printf %s " -beta ${SRCDS_BETAID} " ) $( [[ -z ${SRCDS_BETAPASS} ]] || printf %s " -betapassword ${SRCDS_BETAPASS} " ) $( [[ -z ${HLDS_GAME} ]] || printf %s " +app_set_config 90 mod ${HLDS_GAME} " ) ${INSTALL_FLAGS} $ ( [[ " ${VALIDATE} " == " 1 " ]] && printf %s ' validate' ) +quit
73
73
fi
74
74
else
75
75
echo -e " No appid set. Starting Server"
Original file line number Diff line number Diff line change 9
9
RUN dpkg --add-architecture i386
10
10
RUN apt update
11
11
RUN apt install -y --no-install-recommends wget iproute2 gnupg2 software-properties-common libntlm0 winbind xvfb xauth libncurses5-dev:i386 libncurses6 dbus libgdiplus lib32gcc-s1
12
- RUN apt install -y alsa-tools libpulse0 pulseaudio libpulse-dev libasound2 libao-common gnutls-bin gnupg locales numactl cabextract curl python3 python3-pip python3-setuptools
12
+ RUN apt install -y alsa-tools libpulse0 pulseaudio libpulse-dev libasound2 libao-common gnutls-bin gnupg locales numactl cabextract curl python3 python3-pip python3-setuptools tini file
13
13
RUN useradd -d /home/container -m container
14
14
15
15
# Download Proton GE
@@ -40,5 +40,9 @@ USER container
40
40
ENV USER=container HOME=/home/container
41
41
WORKDIR /home/container
42
42
43
- COPY ./../entrypoint.sh /entrypoint.sh
44
- CMD [ "/bin/bash" , "/entrypoint.sh" ]
43
+ STOPSIGNAL SIGINT
44
+
45
+ COPY --chown=container:container ./../entrypoint.sh /entrypoint.sh
46
+ RUN chmod +x /entrypoint.sh
47
+ ENTRYPOINT ["/usr/bin/tini" , "-g" , "--" ]
48
+ CMD ["/entrypoint.sh" ]
You can’t perform that action at this time.
0 commit comments