fix: resolve Docker build failures by copying tsconfig.build.json

- Updated Dockerfile to copy all tsconfig*.json files (includes tsconfig.build.json)
- Updated Dockerfile.railway with same fix
- Changed standard Dockerfile to use 'tsc -p tsconfig.build.json' for consistency
- This fixes the missing file errors preventing Docker builds in CI

The issue was that tsconfig.build.json was added for the testing infrastructure
but the Docker COPY commands were not updated to include it.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
czlonkowski
2025-07-30 10:13:14 +02:00
parent ced38b2f8a
commit ee9efd7849
2 changed files with 5 additions and 5 deletions

View File

@@ -5,8 +5,8 @@
FROM node:22-alpine AS builder
WORKDIR /app
# Copy tsconfig for TypeScript compilation
COPY tsconfig.json ./
# Copy tsconfig files for TypeScript compilation
COPY tsconfig*.json ./
# Create minimal package.json and install ONLY build dependencies
RUN --mount=type=cache,target=/root/.npm \
@@ -19,7 +19,7 @@ RUN --mount=type=cache,target=/root/.npm \
COPY src ./src
# Note: src/n8n contains TypeScript types needed for compilation
# These will be compiled but not included in runtime
RUN npx tsc
RUN npx tsc -p tsconfig.build.json
# Stage 2: Runtime (minimal dependencies)
FROM node:22-alpine AS runtime

View File

@@ -9,8 +9,8 @@ WORKDIR /app
RUN apk add --no-cache python3 make g++ && \
rm -rf /var/cache/apk/*
# Copy package files and tsconfig
COPY package*.json tsconfig.json ./
# Copy package files and tsconfig files
COPY package*.json tsconfig*.json ./
# Install all dependencies (including devDependencies for build)
RUN npm ci --no-audit --no-fund