diff --git a/Dockerfile b/Dockerfile index c345b7b..99fb573 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,7 +4,7 @@ # ============================================ # Stage 1: Build - Install dependencies # ============================================ -FROM node:18-alpine AS builder +FROM node:20-alpine AS builder # Add metadata LABEL maintainer="timetracker" @@ -12,6 +12,9 @@ LABEL description="Time tracking application with persistent timer and German br WORKDIR /app +# Install build dependencies for native modules (better-sqlite3) +RUN apk add --no-cache python3 make g++ + # Copy package files for dependency installation COPY package*.json ./ @@ -22,7 +25,7 @@ RUN npm install --omit=dev && \ # ============================================ # Stage 2: Runtime - Slim production image # ============================================ -FROM node:18-alpine +FROM node:20-alpine WORKDIR /app