# Generated by https://smithery.ai. See: https://smithery.ai/docs/build/project-config
# syntax=docker/dockerfile:1

# Builder stage
FROM node:lts-alpine AS builder
WORKDIR /app

# Install dependencies and build
COPY package.json tsconfig.json ./
COPY src ./src
RUN npm install
RUN npm run build

# Final stage
FROM node:lts-alpine
WORKDIR /app

# Install only production dependencies
COPY package.json ./
RUN npm install --production

# Copy built artifacts
COPY --from=builder /app/dist ./dist

# Expose no specific port since this is stdio MCP server
# Default command
CMD ["node", "dist/index.js"]
