# Generated by https://smithery.ai. See: https://smithery.ai/docs/config#dockerfile
# Start with a Python base image
FROM python:3.10-slim

# Install uv for managing environments and dependencies
RUN curl -LsSf https://astral.sh/uv/install.sh | sh

# Set working directory
WORKDIR /app

# Copy the necessary files
COPY . /app

# Create virtual environment and activate it
RUN uv venv
RUN . .venv/bin/activate

# Install dependencies
RUN uv add "mcp[cli]" pydantic python-dotenv daytona-sdk

# Expose the necessary port (if applicable)
EXPOSE 8080

# Define environment variables
ENV PYTHONUNBUFFERED=1

# Run the MCP server
ENTRYPOINT ["uv", "run", "src/daytona_mcp_interpreter/server.py"]
