perf: switch build stages to Alpine for faster CI pulls
Build & Deploy / build-and-deploy (push) Successful in 1m18s
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:
+2
-2
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user