perf: switch build stages to Alpine for faster CI pulls
Build & Deploy / build-and-deploy (push) Successful in 1m18s

- node:20-bookworm → node:20-alpine (350MB → 130MB)
- maven:3-eclipse-temurin-21 → maven:3-eclipse-temurin-21-alpine (630MB → 200MB)

Runtime stage (eclipse-temurin:21-jre-alpine) unchanged — final
image size stays the same, but CI caches and pulls are faster.
This commit is contained in:
Hermes Agent
2026-06-03 09:22:42 +02:00
parent 7b7cc56bc1
commit 4a3ba3b986
+2 -2
View File
@@ -1,7 +1,7 @@
# Dostalgia — Quarkus multi-stage build # Dostalgia — Quarkus multi-stage build
# ─── 1. Build frontend ─────────────────────────── # ─── 1. Build frontend ───────────────────────────
FROM node:20-bookworm AS frontend FROM node:20-alpine AS frontend
WORKDIR /build WORKDIR /build
COPY frontend/package.json frontend/package-lock.json ./ COPY frontend/package.json frontend/package-lock.json ./
RUN npm ci 2>/dev/null || npm install --legacy-peer-deps RUN npm ci 2>/dev/null || npm install --legacy-peer-deps
@@ -9,7 +9,7 @@ COPY frontend/ ./
RUN npm run build RUN npm run build
# ─── 2. Build Quarkus app ──────────────────────── # ─── 2. Build Quarkus app ────────────────────────
FROM maven:3-eclipse-temurin-21 AS build FROM maven:3-eclipse-temurin-21-alpine AS build
WORKDIR /build WORKDIR /build
COPY pom.xml ./ COPY pom.xml ./
COPY src ./src COPY src ./src