Production docker improvements (#463)

* Update production dockerfiles for testing

* Add bash, nano and remove unecessary sqlite3 alpine package
This commit is contained in:
Darko Gjorgjijoski
2025-09-02 03:27:26 +02:00
committed by GitHub
parent 3e96297699
commit 770da45dbf
4 changed files with 14 additions and 18 deletions

View File

@@ -28,7 +28,7 @@ if [ "$DB_CONNECTION" = "sqlite" ] || [ -z "$DB_CONNECTION" ]; then
if [ ! -e "$DB_DATABASE" ]; then
echo "**** Specified sqlite database doesn't exist. Creating it ****"
echo "**** Please make sure your database is on a persistent volume ****"
sqlite3 "$DB_DATABASE" "VACUUM;"
cp /var/wwwp/html/database/stubs/sqlite.empty.db "$DB_DATABASE"
fi
chown www-data:www-data "$DB_DATABASE"
fi