From 2d2583e62bb67b1d6ec63fa99ba8b7c7f062e2c5 Mon Sep 17 00:00:00 2001 From: Vichingo455 Date: Sat, 1 Nov 2025 11:39:54 +0100 Subject: [PATCH] git ti odio --- Dockerfile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..5e96ec2 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,16 @@ +FROM php:8.2-apache +RUN docker-php-ext-install mysqli pdo pdo_mysql +COPY htdocs/ /var/www/html/ +COPY docker/php/config.php /var/www/html/config/config.php +RUN apt-get update && apt-get install -y \ + unzip \ + curl \ + git \ + && rm -rf /var/lib/apt/lists/* +RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer +RUN composer --version +WORKDIR /var/www/html/admin +RUN composer install --no-interaction +RUN chown -R www-data:www-data /var/www/html +RUN a2enmod rewrite +EXPOSE 80 \ No newline at end of file