From 92b7d6fc6799f7e8e6b5e0d0f526dea4ddb024c7 Mon Sep 17 00:00:00 2001 From: ScreenTinker Date: Thu, 13 Aug 2026 11:35:31 -0500 Subject: [PATCH] Dockerfile: sharp is no longer a production dependency --omit=dev now leaves it out entirely; better-sqlite3 is the only native module the builder stage still needs a toolchain for. --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index e99ab24..059e383 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,9 @@ # No TLS in the image: it listens on plain HTTP :3001. Front it with a # TLS-terminating reverse proxy / Cloudflare in production. -# --- builder: install production deps (native: better-sqlite3, sharp) --- +# --- builder: install production deps (better-sqlite3 is the only native one left; image +# decoding is pure JS + WASM since sharp was dropped, and sharp is now a devDependency that +# --omit=dev leaves out entirely) --- FROM node:20-slim AS builder WORKDIR /app/server # build toolchain in case a native prebuild is missing for the target arch