Repository navigation
Expand file tree
/
Copy pathDockerfile
More file actions
63 lines (54 loc) · 1.35 KB
/
Copy pathDockerfile
File metadata and controls
63 lines (54 loc) · 1.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# Elegimos la versión de PHP8.5 con Debian Trixie como base
FROM php:8.5-fpm-trixie
ARG UNAME=www-data
ARG UGROUP=www-data
ARG UID=1000
ARG GID=1000
RUN usermod --uid $UID $UNAME
RUN groupmod --gid $GID $UGROUP
# Installing dependencies for the PHP modules
RUN apt-get update && apt-get install -y \
zip \
libzip-dev \
libpng-dev \
libfreetype-dev \
libjpeg62-turbo-dev \
libwebp-dev \
libavif-dev \
unzip \
wget \
libcurl4-openssl-dev \
libxml2-dev \
libicu-dev \
pkg-config \
git \
nano \
&& rm -rf /var/lib/apt/lists/*
# GD con soporte JPEG, FreeType y WebP
RUN docker-php-ext-configure gd \
--with-freetype \
--with-jpeg \
--with-webp \
--with-avif \
&& docker-php-ext-install gd
# Resto de extensiones
RUN docker-php-ext-install -j$(nproc) \
mysqli \
pdo \
pdo_mysql \
zip \
curl \
xml \
intl \
soap \
exif
RUN pecl install xdebug \
&& docker-php-ext-enable xdebug
RUN chmod 777 /var/www
# instalando composer
# Descargar e instalar Composer
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
# poner un php.ini de desarrollo
# RUN mv "$PHP_INI_DIR/php.ini-development" "$PHP_INI_DIR/php.ini"
# poner un php.ini de producción
# RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"