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
All checks were successful
Build and Push Docker Image / build (push) Successful in 47s
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user