# Generated by https://smithery.ai. See: https://smithery.ai/docs/config#dockerfile
FROM python:3.11-alpine
# Install build dependencies
RUN apk add --no-cache gcc musl-dev libffi-dev openssl-dev
# Set work directory
WORKDIR /app
# Copy project files
COPY pyproject.toml ./
COPY README.md ./
COPY uv.lock ./
COPY src/ ./src/
# Install pipenv and build dependencies
RUN pip install --upgrade pip \
&& pip install hatchling
# Install project in editable mode
RUN pip install --no-cache-dir -e .
# Expose stdio; in MCP servers, stdio is used by default
# Default command to run the MCP server
CMD ["reference-mcp"]