diff --git a/docker/production/Dockerfile b/docker/production/Dockerfile index 37d406c1..3930a4c4 100644 --- a/docker/production/Dockerfile +++ b/docker/production/Dockerfile @@ -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 diff --git a/docker/production/entrypoint.d/00-setup.sh b/docker/production/entrypoint.d/00-setup.sh index 42a7b834..48f36f98 100644 --- a/docker/production/entrypoint.d/00-setup.sh +++ b/docker/production/entrypoint.d/00-setup.sh @@ -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