fix: upgrade Node.js to 22.14.0, add svelte-kit sync before build
All checks were successful
Build and Push Backend Image / build (push) Successful in 1m9s
Build and Push Buttplug Image / build (push) Successful in 4m21s
Build and Push Frontend Image / build (push) Successful in 1m15s

- Node 22.11.0 is below Vite's minimum requirement of 22.12+
- svelte-kit sync must run before vite build to generate
  .svelte-kit/tsconfig.json which tsconfig.json extends

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-08 17:14:51 +01:00
parent 1175b4d0e6
commit 4f85637875
3 changed files with 8 additions and 5 deletions

View File

@@ -3,7 +3,7 @@
# ============================================================================
# Base stage - shared dependencies
# ============================================================================
FROM node:22.11.0-slim AS base
FROM node:22.14.0-slim AS base
# Enable corepack for pnpm
RUN npm install -g corepack@latest && corepack enable
@@ -32,6 +32,9 @@ COPY packages ./packages
# Install all dependencies
RUN pnpm install --frozen-lockfile
# Generate SvelteKit type definitions (creates .svelte-kit/tsconfig.json)
RUN pnpm --filter @sexy.pivoine.art/frontend exec svelte-kit sync
# Build frontend
RUN pnpm --filter @sexy.pivoine.art/frontend build
@@ -41,7 +44,7 @@ RUN CI=true pnpm install -rP
# ============================================================================
# Runner stage - minimal production image
# ============================================================================
FROM node:22.11.0-slim AS runner
FROM node:22.14.0-slim AS runner
# Install dumb-init for proper signal handling
RUN apt-get update && apt-get install -y \

View File

@@ -3,7 +3,7 @@
# ============================================================================
# Builder stage
# ============================================================================
FROM node:22.11.0-slim AS builder
FROM node:22.14.0-slim AS builder
RUN npm install -g corepack@latest && corepack enable
@@ -34,7 +34,7 @@ RUN pnpm rebuild argon2 sharp
# ============================================================================
# Runner stage
# ============================================================================
FROM node:22.11.0-slim AS runner
FROM node:22.14.0-slim AS runner
RUN apt-get update && apt-get install -y \
dumb-init \

View File

@@ -3,7 +3,7 @@
# ============================================================================
# Builder stage - compile Rust/WASM and TypeScript
# ============================================================================
FROM node:22.11.0-slim AS builder
FROM node:22.14.0-slim AS builder
# Install build dependencies for Rust
RUN apt-get update && apt-get install -y \