FROM ubuntu:resolute

WORKDIR /app

# Install system dependencies
RUN apt update && apt install -y curl && rm -rf /var/lib/apt/lists/*

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

# Copy dependency files and README (required for build)
COPY ./pyproject.toml ./uv.lock* ./README.md /app/

# Install dependencies
RUN uv sync --frozen --no-dev

# Copy application code
COPY ./vantage_agent /app/vantage_agent

# Run the vantage agent
CMD ["uv", "run", "--no-dev", "vtg-run"]
