Primer Commit

This commit is contained in:
Ubuntu
2026-06-27 11:49:19 +00:00
commit 02083bd055
507 changed files with 14427 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
FROM php:8.2-apache
# 0. Instalar ImageMagick, sus librerías base y la extensión imagick para PHP
RUN apt-get update && apt-get install -y \
imagemagick \
libmagickwand-dev \
&& pecl install imagick \
&& docker-php-ext-enable imagick \
&& apt-get clean && rm -rf /var/lib/apt/lists/*
# 1. Activar mod_rewrite (para URLs amigables)
RUN a2enmod rewrite
# 2. Permitir .htaccess (Cambiar AllowOverride None a All)
RUN sed -i '/<Directory \/var\/www\/>/,/<\/Directory>/ s/AllowOverride None/AllowOverride All/' /etc/apache2/apache2.conf
# 3. Instalar y habilitar extensiones de base de datos
RUN docker-php-ext-install mysqli pdo pdo_mysql && docker-php-ext-enable mysqli