FROM python:3.11-slim AS builder
# Set working directory
WORKDIR /app
# Copy project files
COPY . /app/
# Install the package
RUN pip install --no-cache-dir -e .
# Production image
FROM python:3.11-slim
WORKDIR /app
# Copy installed package from builder
COPY --from=builder /usr/local/lib/python3.11/site-packages /usr/local/lib/python3.11/site-packages
COPY --from=builder /usr/local/bin /usr/local/bin
COPY --from=builder /app /app
# Run the server
CMD ["python", "-m", "usekeen_mcp"]