Files
oficial/Dockerfile

27 lines
1.2 KiB
Docker
Raw Normal View History

2025-05-05 18:16:54 -04:00
FROM php:8.4-fpm
2021-03-25 21:24:03 -03:00
2024-09-16 22:20:22 -03:00
ENV TZ=America/Santiago
2021-03-25 21:24:03 -03:00
2025-05-05 19:33:01 -04:00
# http://deb.debian.org/debian bookworm InRelease
# => => # Ign:2 http://deb.debian.org/debian bookworm-updates InRelease
# => => # Ign:3 http://deb.debian.org/debian-security bookworm-security InRelease
RUN echo "deb http://ftp.debian.org/debian/ bookwork InRelease" > /etc/apt/sources.list.d/ftp.debian.list \
2025-05-05 19:33:46 -04:00
&& echo "deb http://ftp.debian.org/debian/ bookworm-updates InRelease" >> /etc/apt/sources.list.d/ftp.debian.list \
2025-05-05 19:33:01 -04:00
&& apt-get update && apt-get install -y --no-install-recommends libzip-dev libicu-dev git \
2025-05-05 18:16:54 -04:00
libpng-dev unzip tzdata libxml2-dev \
2024-09-16 22:20:22 -03:00
&& rm -r /var/lib/apt/lists/* \
2025-05-05 18:16:54 -04:00
&& docker-php-ext-install pdo pdo_mysql zip intl gd bcmath dom \
&& pecl install xdebug-3.4.2 \
2024-09-16 22:20:22 -03:00
&& docker-php-ext-enable xdebug \
&& echo $TZ > /etc/timezone
2022-03-07 12:07:33 -03:00
2023-07-24 20:54:30 -04:00
COPY ./php-errors.ini /usr/local/etc/php/conf.d/docker-php-errors.ini
2024-03-20 13:45:53 -03:00
COPY ./php-xdebug.ini /usr/local/etc/php/conf.d/docker-php-xdebug.ini
2024-07-17 22:33:33 -04:00
COPY ./php-memory.ini /usr/local/etc/php/conf.d/docker-php-memory.ini
2024-09-16 22:20:22 -03:00
COPY ./php-timezone.ini /usr/local/etc/php/conf.d/docker-php-timezone.ini
2023-07-24 20:54:30 -04:00
2022-03-07 12:07:33 -03:00
COPY --from=composer /usr/bin/composer /usr/bin/composer
WORKDIR /code