Adds dockerfiles for the skyrim server
This commit is contained in:
commit
ad7c3dac0d
5 changed files with 89 additions and 0 deletions
13
latest/entrypoint.sh
Normal file
13
latest/entrypoint.sh
Normal 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}
|
Loading…
Add table
Add a link
Reference in a new issue