# CI image: catthehacker/ubuntu:act-latest + PHP 8.4 + extensions + Composer
# Used by .forgejo/workflows/ci.yml — built/pushed by .forgejo/workflows/ci-image.yml
FROM catthehacker/ubuntu:act-latest

ENV DEBIAN_FRONTEND=noninteractive

RUN add-apt-repository -y ppa:ondrej/php \
    && apt-get update \
    && apt-get install -y --no-install-recommends \
        php8.4-cli \
        php8.4-pgsql \
        php8.4-mbstring \
        php8.4-xml \
        php8.4-dom \
        php8.4-intl \
        php8.4-pcov \
    && update-alternatives --set php /usr/bin/php8.4 \
    && apt-get clean \
    && rm -rf /var/lib/apt/lists/*

# Composer (latest 2.x, static binary from official image)
COPY --from=composer:2 /usr/bin/composer /usr/bin/composer
