FROM archlinux:latest

# Actualizar base y herramientas de compilación
RUN pacman -Syu --noconfirm && \
    pacman -S --noconfirm --needed \
        base-devel \
        pkg-config \
        curl \
        ca-certificates \
        gtk4 \
        gstreamer \
        gst-plugins-base \
        gst-plugins-bad \
        gst-plugins-good \
        gst-plugins-ugly \
        gst-libav \
        openssl \
        ffmpeg \
    && pacman -Scc --noconfirm

# Instalar Rust estable
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain stable
ENV PATH="/root/.cargo/bin:${PATH}"

WORKDIR /build
