Add caddy version control, explicit portfolio version, cache management
All checks were successful
Portfolio/pipeline/head This commit looks good

This commit is contained in:
2026-01-08 19:39:17 +01:00
parent b4c10b62cc
commit 3f98cac537
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