From 252f092801a47f79561f31f21d84effbddfdfba1 Mon Sep 17 00:00:00 2001 From: Pedro Montes Alcalde Date: Mon, 23 Feb 2026 22:08:54 -0300 Subject: [PATCH] Allow passing arguments with normal arguments --- Dockerfile | 12 +++++++----- entrypoint.sh | 6 ++++-- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index cd13857..a3a6cd2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -38,6 +38,12 @@ RUN apt-get update \ && rm -rf /var/lib/apt/lists/* \ && groupadd -r -g 999 warfork && useradd -r -m -g warfork -u 999 warfork + +COPY entrypoint.sh /usr/local/bin/ +RUN chmod +x /usr/local/bin/entrypoint.sh +COPY entrypointtv.sh /usr/local/bin/ +RUN chmod +x /usr/local/bin/entrypointtv.sh + USER warfork RUN mkdir -p /home/warfork/Steam && \ @@ -52,8 +58,4 @@ RUN wget -qO- https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.ta RUN ln -s /home/warfork/Steam/linux64 /home/warfork/.steam/sdk64 && \ ln -s /home/warfork/Steam/linux32 /home/warfork/.steam/sdk32 -COPY entrypoint.sh /usr/local/bin/ - -COPY entrypointtv.sh /usr/local/bin/ - -CMD [ "bash", "/usr/local/bin/entrypoint.sh" ] \ No newline at end of file +ENTRYPOINT ["/usr/local/bin/entrypoint.sh"] diff --git a/entrypoint.sh b/entrypoint.sh index a3003c7..3ec9b36 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -13,6 +13,8 @@ server_dir="${HOME}/server" server_installed_lock_file="${server_dir}/installed.lock" wf_dir="${server_dir}/basewf" wf_custom_configs_dir="${WF_CUSTOM_CONFIGS_DIR-"/var/wf"}" +wf_arguments="$@" + install() { echo '> Installing server ...' @@ -62,7 +64,7 @@ start() { exec ./wf_server.x86_64 \ $optionalParameters \ - $WF_PARAMS + $WF_PARAMS $wf_arguments } update() { @@ -111,4 +113,4 @@ else install_or_update sync_custom_files start -fi \ No newline at end of file +fi