diff --git a/CHANGELOG.md b/CHANGELOG.md index 9498e827..10120f3e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## Unreleased +- The generated Dockerfile pins the latest `node:24-alpine` image. - The project name recorded in `.battlestack/manifest.json` now always wins over the directory name. Before, any project command in a clone, CI checkout or renamed directory silently renamed the project to the directory name, and diff --git a/packages/preset-nuxt4/src/features/docker.ts b/packages/preset-nuxt4/src/features/docker.ts index ef890c34..4ee6c5d8 100644 --- a/packages/preset-nuxt4/src/features/docker.ts +++ b/packages/preset-nuxt4/src/features/docker.ts @@ -26,7 +26,7 @@ const PROFILE_FLAGS = ['--profile', 'prod'] /** Production Dockerfile and `battlestack prod` commands, reusing the existing docker-compose.yml. */ export const dockerFeature: Feature = { id: 'shared:docker', - version: '1.2.2', + version: '1.2.3', label: 'Production Dockerfile + prod commands', stage: STAGE.GITIGNORE, failureIsNonFatal: true, diff --git a/packages/preset-nuxt4/templates/docker/Dockerfile b/packages/preset-nuxt4/templates/docker/Dockerfile index cfacc3ec..cd1666f7 100644 --- a/packages/preset-nuxt4/templates/docker/Dockerfile +++ b/packages/preset-nuxt4/templates/docker/Dockerfile @@ -3,7 +3,7 @@ # Build stage # Pinned by digest so a rebuild of the same commit gets the same base image. -FROM node:24-alpine@sha256:ebfe2f90462722a7a4de65e91990e97fe0d401c70e0e762c5b53302f905ec1c1 AS build +FROM node:24-alpine@sha256:44fce696f38ba8c987c4db89954051000bbd05ffd8d8659ba15ed4a8602e937f AS build WORKDIR /app # pnpm-workspace.yaml carries the `allowBuilds:` approvals for native deps and MUST land before install, @@ -107,7 +107,7 @@ GUARD # Runtime stage -FROM node:24-alpine@sha256:ebfe2f90462722a7a4de65e91990e97fe0d401c70e0e762c5b53302f905ec1c1 AS runtime +FROM node:24-alpine@sha256:44fce696f38ba8c987c4db89954051000bbd05ffd8d8659ba15ed4a8602e937f AS runtime # The runtime only ever calls `node`; the bundled npm carries its own vulnerable dependencies. RUN rm -rf /usr/local/lib/node_modules/npm /usr/local/lib/node_modules/corepack \ /usr/local/bin/npm /usr/local/bin/npx /usr/local/bin/corepack