From aa7bec46be67873e4414f03f7f3d44b74671d88c Mon Sep 17 00:00:00 2001 From: Kyle Speight Date: Fri, 29 May 2026 22:32:30 -0700 Subject: [PATCH] Create entrypoint.sh --- tarkov/v4.0.11/entrypoint.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 tarkov/v4.0.11/entrypoint.sh diff --git a/tarkov/v4.0.11/entrypoint.sh b/tarkov/v4.0.11/entrypoint.sh new file mode 100644 index 0000000..c148edf --- /dev/null +++ b/tarkov/v4.0.11/entrypoint.sh @@ -0,0 +1,21 @@ +#!/bin/bash +cd /home/container + +# Set environment variable that holds the Internal Docker IP +INTERNAL_IP=$(ip route get 1 | awk '{print $(NF-2);exit}') +export INTERNAL_IP + +# set this variable, dotnet needs it even without it it reports to `dotnet --info` it can not start any aplication without this +export DOTNET_ROOT=/usr/share/ + +# print the dotnet version on startup +printf "\033[1m\033[33mcontainer~ \033[0mdotnet --version\n" +dotnet --version + +# Replace Startup Variables +MODIFIED_STARTUP=$(echo -e ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g') +echo -e ":/home/container$ ${MODIFIED_STARTUP}" + +echo "Welcome to SPT egg by chillcog3142@proton.me" +# Run the Server +eval ${MODIFIED_STARTUP}