This commit is contained in:
2022-07-07 12:32:13 +03:00
commit bdc0d6b030
38 changed files with 1146 additions and 0 deletions

View File

@ -0,0 +1,10 @@
#!/bin/sh
HOST_DOMAIN="host.docker.internal"
ping -q -c1 $HOST_DOMAIN > /dev/null 2>&1
if [ $? -ne 0 ]; then
HOST_IP=$(ip route | awk 'NR==1 {print $3}')
echo -e "$HOST_IP\t$HOST_DOMAIN" >> /etc/hosts
fi
/bin/sh /docker-entrypoint.sh "$@"