upgrade node
build / image (push) Successful in 3m3s

This commit is contained in:
2026-09-29 11:05:37 +02:00
parent 7b670010b1
commit fe06be8e5a
7 changed files with 50 additions and 42 deletions
+6 -3
View File
@@ -1,7 +1,7 @@
# syntax=docker/dockerfile:1.10
# The build output is platform-independent, so build natively (no QEMU) for multi-arch images.
FROM --platform=$BUILDPLATFORM node:22-alpine AS build
FROM --platform=$BUILDPLATFORM node:24-alpine AS build
WORKDIR /app
RUN corepack enable
ENV ASTRO_TELEMETRY_DISABLED=1
@@ -9,13 +9,16 @@ COPY package.json pnpm-lock.yaml pnpm-workspace.yaml ./
RUN --mount=type=cache,id=pnpm,target=/root/.local/share/pnpm/store \
pnpm install --frozen-lockfile
COPY . .
# Only the canonical site URL is baked in; Harbor settings are read at runtime.
# The canonical site URL is compiled in; Harbor settings are read at runtime (see below).
ARG SITE_URL
RUN pnpm build
FROM node:22-alpine
FROM node:24-alpine
WORKDIR /app
ENV NODE_ENV=production HOST=0.0.0.0 PORT=8080
# Default Harbor instance; still overridable with `-e HARBOR_URL=...` at runtime.
ARG HARBOR_URL
ENV HARBOR_URL=${HARBOR_URL}
# The server build is self-contained (see `vite.ssr.noExternal`), so no node_modules.
COPY --from=build /app/dist ./dist
COPY package.json server.mjs ./