# Generated by https://smithery.ai. See: https://smithery.ai/docs/config#dockerfile
# Use a Python image with uv pre-installed
FROM python:3.12-slim-bookworm
# Install uv
RUN pip install uv
WORKDIR /app
# Copy the application
COPY . .
# Create virtual environment and install dependencies including the package itself
RUN uv venv .venv && \
uv pip install -r requirements.txt && \
uv pip install -e .
# Set environment variables for the virtual environment
ENV PATH="/app/.venv/bin:$PATH"
ENV PYTHONPATH="/app:$PYTHONPATH"
# Environment variables
ENV GIT_REPOS_PATH=/path/to/git/repos
ENTRYPOINT ["git-mcp"]