TelegramApiServer/entrypoint.sh
Daniil Gentili 6ef7a898ab Upstream docker image (#161)
Switch to upstream MadelineProto image
2024-07-14 21:01:42 +02:00

15 lines
341 B
Bash
Executable File

#!/usr/bin/env sh
VERSION=1.0.0
CURRENT_VERSION=$(cat /tas_version)
if [ "$VERSION" != "$CURRENT_VERSION" ]; then
echo "Wrong docker image version, expected $VERSION, got $CURRENT_VERSION, please run docker compose pull!"
exit 1
fi
composer install
docker-compose-wait \
&& nice -n 20 php server.php -e=.env.docker --docker "$@"