FROM php:8.2-apache

# Instalar dependencias necesarias
RUN apt-get update && apt-get install -y \
    unzip \
    git \
    curl \
    libicu-dev

# Instalar Composer
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer

# Habilitar módulos de Apache y PHP si es necesario
RUN docker-php-ext-install pdo pdo_mysql intl

# Copiar el código fuente
COPY ./src /var/www/html