FROM rust:1-bookworm

# Install Tauri v2 system dependencies
# Note: Tauri v2 requires webkit2gtk-4.1 (NOT 4.0 which was for v1)
RUN apt-get update && apt-get install -y \
    libwebkit2gtk-4.1-dev \
    build-essential \
    curl \
    wget \
    file \
    libssl-dev \
    libgtk-3-dev \
    libayatana-appindicator3-dev \
    librsvg2-dev \
    libxdo-dev \
    && rm -rf /var/lib/apt/lists/*

WORKDIR /app
