mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-04-07 05:31:24 +00:00
Add bash, nano and remove unecessary sqlite3 alpine package
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user