FROM node:22-alpine # Install pnpm RUN npm install -g pnpm WORKDIR /app COPY package.json pnpm-lock.yaml ./ # Disable strict built-dependencies check (pnpm v10 exits on ignored builds) RUN echo "strict-built-dependencies=false" > .npmrc && \ pnpm install --no-frozen-lockfile COPY . . # Build all packages except dev-proxy (has upstream TS errors). # Plugin must be built before server (server copies plugin output). RUN pnpm -r --filter '!drawio-mcp-dev-proxy' build CMD ["node", "packages/drawio-mcp-server/build/index.js"]