Modernize BOM Local release tooling

This commit is contained in:
2026-08-30 23:08:06 +10:00
parent 3fb09ec86d
commit 77ae2fefd9
10 changed files with 803 additions and 2354 deletions
+4 -6
View File
@@ -4,14 +4,13 @@ FROM node:20-alpine
WORKDIR /build
# Copy package files first for better caching
COPY package*.json ./
# Copy the declared dependency set first for a reproducible cached build.
COPY package.json package-lock.json ./
COPY tsconfig.json ./
COPY rollup.config.js ./
# Install dependencies (including devDependencies)
# Use npm install since we may have updated package.json
RUN npm install
# Install the exact locked dependencies, including the build-only toolchain.
RUN npm ci
# Copy source files
COPY src/ ./src/
@@ -20,4 +19,3 @@ COPY src/ ./src/
# This ensures the build runs when the container starts, not during image creation
# Use BUILD_TARGET to allow running "watch" or other scripts
CMD ["sh", "-c", "npm run ${BUILD_TARGET:-build}"]