Files
SAE-BUT2-backend/docker/entrypoint.sh
T
2025-11-24 23:18:10 +01:00

21 lines
365 B
Bash

#!/bin/sh
APP_DIR=/var/www/app
if [ ! -d "$APP_DIR/.git" ]; then
git clone https://oauth2:${GIT_TOKEN}@${GIT_REPO} $APP_DIR
else
cd $APP_DIR
git pull
fi
cd $APP_DIR
mkdir -p storage bootstrap/cache
chown -R www-data:www-data storage bootstrap/cache
chmod -R 775 storage bootstrap/cache
composer install --no-interaction --prefer-dist
exec php-fpm