python/docker-entrypoint.sh
2024-11-17 22:00:54 +01:00

25 lines
538 B
Bash
Executable file

#!/bin/bash
export IP=$( hostname -i )
cat <<EOF
__ _ _
___ _ ____ __/ / __ _ _| |_| |__ ___ _ __
/ __| '__\\ \\ / / / '_ \\| | | | __| '_ \\ / _ \\| '_ \\
\\__ \\ | \\ V / /| |_) | |_| | |_| | | | (_) | | | |
|___/_| \\_/_/ | .__/ \\__, |\\__|_| |_|\\___/|_| |_|
|_| |___/
----------------------------------------------------
IP: $IP
EOF
if [ -e "requirements.txt" ]; then
exec pip install -r requirements.txt
fi
if [[ -z "$@" ]]; then
exec bash
else
exec $@
fi