Add bash, nano and remove unecessary sqlite3 alpine package

This commit is contained in:
Darko Gjorgjijoski
2025-09-02 03:18:40 +02:00
parent db30561249
commit e8beab2090
2 changed files with 2 additions and 2 deletions

View File

@@ -5,7 +5,7 @@ FROM --platform=$BUILDPLATFORM node:20 AS static_builder
FROM serversideup/php:8.3-fpm-nginx-alpine AS base
USER root
RUN apk add --no-cache sqlite
RUN apk add --no-cache bash nano
RUN install-php-extensions exif
RUN install-php-extensions pgsql
RUN install-php-extensions sqlite3

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