From a0e3aed8e2d731ba65f26be10dee6ca95cc46038 Mon Sep 17 00:00:00 2001 From: czlonkowski <56956555+czlonkowski@users.noreply.github.com> Date: Fri, 27 Jun 2025 12:34:30 +0200 Subject: [PATCH] fix: Docker build by including n8n-workflow dependency MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Docker build was failing because TypeScript compilation requires n8n-workflow and uuid packages that weren't being installed. Also removed the deletion of src/n8n directory as it contains TypeScript files needed during compilation. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- Dockerfile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4aea54f..58c536b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,12 +12,13 @@ COPY tsconfig.json ./ RUN --mount=type=cache,target=/root/.npm \ echo '{}' > package.json && \ npm install --no-save typescript@^5.8.3 @types/node@^22.15.30 @types/express@^5.0.3 \ - @modelcontextprotocol/sdk@^1.12.1 dotenv@^16.5.0 express@^5.1.0 axios@^1.10.0 + @modelcontextprotocol/sdk@^1.12.1 dotenv@^16.5.0 express@^5.1.0 axios@^1.10.0 \ + n8n-workflow@^1.96.0 uuid@^11.0.5 @types/uuid@^10.0.0 -# Copy source and build (excluding n8n-specific files) +# Copy source and build COPY src ./src -# Remove n8n node implementation and related utils that aren't needed for MCP server -RUN rm -rf src/n8n src/utils/bridge.ts src/utils/mcp-client.ts +# Note: src/n8n contains TypeScript types needed for compilation +# These will be compiled but not included in runtime RUN npx tsc # Stage 2: Runtime (minimal dependencies)