From 5c062fb2cb1719cbcdd427536ceee2de99f4e6be Mon Sep 17 00:00:00 2001 From: nmemmert Date: Tue, 13 Jan 2026 16:10:18 -0500 Subject: [PATCH] Install devDependencies for build, then prune - Install all dependencies including TypeScript for build - Remove devDependencies after build to keep image small - Fixes TypeScript missing error during Docker build --- Dockerfile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index b38e6e6..0e48eae 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,8 +6,8 @@ WORKDIR /app # Copy package files COPY package*.json ./ -# Install dependencies (production only) -RUN npm ci --only=production +# Install all dependencies (needed for build) +RUN npm ci # Copy source code COPY . . @@ -15,6 +15,9 @@ COPY . . # Build the application RUN npm run build +# Remove devDependencies to reduce image size +RUN npm prune --production + # Create data directory for encrypted local storage RUN mkdir -p /app/data && chmod 755 /app/data