We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4637eba commit 4deadf3Copy full SHA for 4deadf3
Dockerfile
@@ -1,7 +1,13 @@
1
FROM php:7.4-apache
2
3
-# Actualizar los repositorios y limpiar cachés antes de instalar dependencias
4
-RUN apt-get clean && apt-get update -y && apt-get install -y \
+# Habilitar repositorios adicionales (universe) para dependencias
+RUN apt-get update -y && \
5
+ apt-get install -y software-properties-common && \
6
+ add-apt-repository universe && \
7
+ apt-get update -y
8
+
9
+# Instalar dependencias necesarias
10
+RUN apt-get install -y \
11
libmysqlclient-dev \
12
libonig-dev \
13
&& docker-php-ext-install pdo pdo_mysql mbstring
@@ -22,4 +28,3 @@ EXPOSE 80
22
28
# Comando para iniciar Apache
23
29
CMD ["apache2-foreground"]
24
30
25
-
0 commit comments