feat(jenkins): manage portfolio version, caddy version and cache

This commit is contained in:
2026-01-08 19:39:17 +01:00
parent a996ae9c7e
commit 54f4372629
5 changed files with 22 additions and 9 deletions

View File

@@ -1,3 +1,5 @@
ARG CADDY_VERSION
# --- BUILD ---
FROM node:24-alpine AS build
RUN corepack enable && corepack prepare pnpm@latest --activate
@@ -15,7 +17,7 @@ COPY . .
RUN pnpm build
# --- DEPLOY ---
FROM caddy:alpine
FROM caddy:${CADDY_VERSION}-alpine
COPY --from=build /app/dist /usr/share/caddy
COPY Caddyfile /etc/caddy/Caddyfile