Skip to content

Commit 4deadf3

Browse files
committed
WIP
- Dockerfile config for deployment
1 parent 4637eba commit 4deadf3

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

Dockerfile

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
FROM php:7.4-apache
22

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 \
3+
# Habilitar repositorios adicionales (universe) para dependencias
4+
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 \
511
libmysqlclient-dev \
612
libonig-dev \
713
&& docker-php-ext-install pdo pdo_mysql mbstring
@@ -22,4 +28,3 @@ EXPOSE 80
2228
# Comando para iniciar Apache
2329
CMD ["apache2-foreground"]
2430

25-

0 commit comments

Comments
 (0)