feat(jenkins): manage portfolio version, caddy version and cache
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user