From eb1bae3b069a8e5c9b4d5d1cf1432f0621ab3dab Mon Sep 17 00:00:00 2001 From: Chris Date: Sun, 1 Nov 2026 01:44:58 -0500 Subject: [PATCH] Exclude node_modules and data from Docker build context Prevents host-built native modules (better-sqlite3) from overwriting the image's Linux build and keeps the live database/backups out of image layers. --- .dockerignore | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.dockerignore b/.dockerignore index 8f18bec..cce005b 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,2 +1,10 @@ # Keep the standalone observability stack (and its data) out of the app image observability/ + +# Host-installed dependencies: the image installs its own Linux/musl build via +# `npm ci` (native modules like better-sqlite3 are OS-specific) +node_modules/ +npm-debug.log + +# Live database and backups: provided at runtime via the ./data volume mount +data/