FROM ubuntu:24.04

# Install or copy over any environment dependencies here.

ENV DEBIAN_FRONTEND=noninteractive

# Install Python and essential tools
RUN apt-get update && apt-get install -y \
    python3 \
    python3-pip \
    python3-venv \
    python3-dev \
    build-essential \
    wget \
    curl \
    ca-certificates \
    && rm -rf /var/lib/apt/lists/*

# Create working directory
WORKDIR /app

# Install Python dependencies for citation verification
RUN pip3 install --break-system-packages \
    requests==2.32.3 \
    bibtexparser==1.4.2 \
    pyyaml==6.0.3 \
    numpy==2.4.1 \
    pyperplan==2.1 \
    unified_planning==1.3.0 \
    up-pyperplan==1.1.0

COPY problem.json /app/problem.json
COPY tpp /app/tpp
# COPY reference /app/reference
COPY skills /app/skills

# Copy skills to agent-specific locations
# Claude Code
COPY skills /root/.claude/skills
# Codex
COPY skills /root/.codex/skills
# OpenCode
COPY skills /root/.opencode/skill
# Goose
COPY skills /root/.goose/skills
# Factory
COPY skills /root/.factory/skills
# Portable agents format (Goose, Amp)
COPY skills /root/.agents/skills
# Gemini
COPY skills /root/.gemini/skills
