From ea9da88eeb663b1db44174a86a29ef6619ab4745 Mon Sep 17 00:00:00 2001 From: Austin Burdine Date: Tue, 30 Jun 2026 13:38:02 -0400 Subject: [PATCH] Fix optional dependency check for better-sqlite3 --- 6/alpine3.23/Dockerfile | 2 +- 6/bookworm/Dockerfile | 2 +- Dockerfile.template | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/6/alpine3.23/Dockerfile b/6/alpine3.23/Dockerfile index c9217537..dd0ece7f 100644 --- a/6/alpine3.23/Dockerfile +++ b/6/alpine3.23/Dockerfile @@ -84,7 +84,7 @@ RUN set -eux; \ \ # test that the optional dependencies are installed and loadable cd current; \ - gosu node node -e 'require("sqlite3"); if (!require("@tryghost/image-transform").canTransformFiles()) throw new Error("sharp not installed");' + gosu node node -e 'require("better-sqlite3"); if (!require("@tryghost/image-transform").canTransformFiles()) throw new Error("sharp not installed");' WORKDIR $GHOST_INSTALL VOLUME $GHOST_CONTENT diff --git a/6/bookworm/Dockerfile b/6/bookworm/Dockerfile index 2f60e091..1f8958d3 100644 --- a/6/bookworm/Dockerfile +++ b/6/bookworm/Dockerfile @@ -86,7 +86,7 @@ RUN set -eux; \ \ # test that the optional dependencies are installed and loadable cd current; \ - gosu node node -e 'require("sqlite3"); if (!require("@tryghost/image-transform").canTransformFiles()) throw new Error("sharp not installed");' + gosu node node -e 'require("better-sqlite3"); if (!require("@tryghost/image-transform").canTransformFiles()) throw new Error("sharp not installed");' WORKDIR $GHOST_INSTALL VOLUME $GHOST_CONTENT diff --git a/Dockerfile.template b/Dockerfile.template index f8916bd2..149e82bf 100644 --- a/Dockerfile.template +++ b/Dockerfile.template @@ -117,7 +117,7 @@ RUN set -eux; \ \ # test that the optional dependencies are installed and loadable cd current; \ - gosu node node -e 'require("sqlite3"); if (!require("@tryghost/image-transform").canTransformFiles()) throw new Error("sharp not installed");' + gosu node node -e 'require("better-sqlite3"); if (!require("@tryghost/image-transform").canTransformFiles()) throw new Error("sharp not installed");' WORKDIR $GHOST_INSTALL VOLUME $GHOST_CONTENT