Adds dockerfiles for the skyrim server

This commit is contained in:
zontreck 2024-07-10 15:41:48 -07:00
commit ad7c3dac0d
5 changed files with 89 additions and 0 deletions

13
latest/entrypoint.sh Normal file
View file

@ -0,0 +1,13 @@
#!/bin/bash
cd /home/container
INTERNAL_IP=$(ip route get 1 | awk '{print $(NF-2);exit}')
export INTERNAL_IP
# Replace startup vars
MODIFIED_STARTUP=$(echo -e ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g')
echo -e ":/home/container$ ${MODIFIED_STARTUP}
eval ${MODIFIED_STARTUP}