feat: upgrade Node.js version to 20-alpine in Dockerfile for improved performance and compatibility
All checks were successful
Build and Push Docker Image / build (push) Successful in 47s

This commit is contained in:
Felix Schlusche
2025-10-31 18:20:31 +01:00
parent 425c817522
commit bad91636b5

View File

@@ -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