FROM ghcr.io/nerfstudio-project/nerfstudio:1.1.5

COPY --from=ghcr.io/astral-sh/uv:0.12.2 /uv /uvx /bin/

WORKDIR /opt/splat-agent
COPY pyproject.toml uv.lock README.md ./
COPY src ./src

RUN uv tool install --locked /opt/splat-agent

ENV PATH="/root/.local/bin:${PATH}" \
    PYTHONUNBUFFERED=1

ENTRYPOINT ["splat-agent"]
CMD ["--help"]
