Skip to content

Commit 850929a

Browse files
mighteaclaude
andcommitted
build: pin the builder image to Alpine 3.23
node:25-alpine currently resolves to Alpine 3.23 (the newest Alpine with node variants); pinning makes base-OS bumps deliberate. caddy publishes no alpine-versioned tags — 2-alpine tracks upstream and ships 3.23 today. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PQBG6D5kahSu9frv13XQ4W
1 parent e7a49c0 commit 850929a

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
FROM node:25-alpine AS builder
1+
# Alpine 3.23 is the latest Alpine with node image variants (checked 2026-07);
2+
# pinned explicitly so base-OS bumps are deliberate rather than surprise rebuilds.
3+
FROM node:25-alpine3.23 AS builder
24
ENV PNPM_HOME=/pnpm
35
ENV PATH=$PNPM_HOME:$PATH
46
RUN mkdir -p $PNPM_HOME && npm install -g corepack@latest --force && corepack enable && corepack prepare pnpm@10.2.1 --activate
@@ -10,6 +12,8 @@ RUN pnpm install --frozen-lockfile
1012
COPY . .
1113
RUN pnpm build
1214

15+
# caddy publishes no alpine-versioned tags; 2-alpine tracks the latest
16+
# Alpine automatically (3.23 as of 2026-07).
1317
FROM caddy:2-alpine AS runtime
1418
ARG APP_VERSION=0.0.0
1519
ENV APP_VERSION=$APP_VERSION

0 commit comments

Comments
 (0)