File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed
Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change 1- # Imagen base con PHP y Apache
2- FROM php:8.2-apache
1+ FROM php:7.4-apache
32
4- # Instalar extensiones necesarias
5- RUN docker-php-ext-install pdo pdo_mysql mbstring
3+ # Instalar dependencias del sistema
4+ RUN apt-get update && apt-get install -y \
5+ libmysqlclient-dev \
6+ libonig-dev \
7+ && docker-php-ext-install pdo pdo_mysql mbstring
68
7- # Copiar archivos de Kirby
9+ # Copiar tu aplicación al contenedor
810COPY . /var/www/html/
911
10- # Configurar permisos
11- RUN chown -R www-data:www-data /var/www/html
12+ # Habilitar el módulo de Apache para permitir .htaccess (si es necesario)
13+ RUN a2enmod rewrite
1214
13- # Exponer el puerto de Apache
15+ # Exponer el puerto 80
1416EXPOSE 80
1517
16- # Ejecutar Apache en primer plano
17- CMD ["apache2-foreground" ]
You can’t perform that action at this time.
0 commit comments