diff --git a/entrypoint.sh b/entrypoint.sh new file mode 100644 index 0000000..bdedfb5 --- /dev/null +++ b/entrypoint.sh @@ -0,0 +1,11 @@ +#!/bin/bash +sleep 3 + +cd /home/container + +export INTERNAL_IP=`ip route get 1 | awk '{print $NF;exit}'` + +MODIFIED_STARTUP=`eval echo $(echo ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g')` +echo ":/home/container$ ${MODIFIED_STARTUP}" + +${MODIFIED_STARTUP}