FROM node:22-alpine WORKDIR /app # Copy source code from the repository COPY . . # Install ALL dependencies (including dev deps needed for build) RUN npm ci # Build the project RUN npm run build # Now prune dev dependencies RUN npm prune --production # Expose the MCP server port EXPOSE 8080 # Start the pre-built MCP server directly (don't rebuild) CMD ["node", "dist/index.js", "--transport", "http"]