FROM python:3.12-slim

WORKDIR /app

# Install uv
COPY --from=ghcr.io/astral-sh/uv:latest /uv /usr/local/bin/uv

# Copy project files
COPY pyproject.toml .
COPY weather_server.py .

# Install dependencies
RUN uv pip install --system "mcp[cli]>=1.0.0" "httpx>=0.27.0"

EXPOSE 8000

CMD ["python", "weather_server.py"]
