From 953da151e32de270583e727c7c7029f17304255f Mon Sep 17 00:00:00 2001 From: Matiss Jurevics Date: Sat, 10 Jan 2026 23:50:46 +0000 Subject: [PATCH] docker --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index feb1f40..7cbce80 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,6 +2,9 @@ FROM node:18-alpine WORKDIR /app +# Install build dependencies for better-sqlite3 +RUN apk add --no-cache python3 make g++ + COPY package*.json ./ RUN npm install --production @@ -9,7 +12,6 @@ COPY . . # Initialize DB during build or rely on start # We'll just ensure the directory is writable if needed, but sqlite file is created at runtime if not present. -# However, if we want to risk it, we can pre-create it. But better let the app handle it. EXPOSE 3000