diff --git a/Dockerfile b/Dockerfile index 1b18e15..c00ff48 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,12 +2,12 @@ FROM php:8.2-apache # Enable Apache modules RUN a2enmod rewrite # Install composer dependencies -RUN apt update && apt upgrade -y && apt install -y git curl libzip-dev zip unzip +RUN apt update && apt upgrade -y && apt install -y git curl libzip-dev zip unzip libonig-dev # Install Node -RUN curl -fsSL https://deb.nodesource.com/setup_22.x | bash - +RUN curl -fsSL https://deb.nodesource.com/setup_22.x | bash - RUN apt update && apt-get install -y nodejs # Install any extensions you need -RUN docker-php-ext-install mysqli pdo pdo_mysql zip +RUN docker-php-ext-install mysqli pdo pdo_mysql zip bcmath mbstring # Install Composer RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer # Set the working directory to /var/www diff --git a/docker-compose.yml b/docker-compose.yml index 44ef01a..08fc9e0 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -22,7 +22,9 @@ services: MARIADB_PASSWORD: ${PROJECT_DB_PASSWORD} ports: - "3306:3306" - + volumes: + - lexiconga_db:/var/lib/mysql + phpmyadmin: image: phpmyadmin/phpmyadmin links: @@ -33,3 +35,6 @@ services: PMA_HOST: db MYSQL_ROOT_PASSWORD: ${PROJECT_DB_ROOT_PASSWORD} UPLOAD_LIMIT: 300M + +volumes: + lexiconga_db: \ No newline at end of file