FROM python:3.12

# Install basic packages
RUN apt-get update && apt-get install -y \
    curl \
    wget \
    git \
    unzip \
    zip \
    p7zip-full \
    build-essential \
    ffmpeg \
    libsm6 \
    libxext6 \
    && rm -rf /var/lib/apt/lists/*

# Create workspace directories
RUN mkdir -p /home/paper /home/submission /home/logs /home/code

# Initialize submission directory as git repo with git config
RUN git config --global user.email "agent@example.com" \
    && git config --global user.name "agent" \
    && git init /home/submission

WORKDIR /home
