/[LeafOK_CVS]/fenglin/Dockerfile/dockerfile.php
ViewVC logotype

Annotation of /fenglin/Dockerfile/dockerfile.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations)
Tue Jan 6 01:21:56 2026 UTC (2 months, 1 week ago) by sysadm
Branch: MAIN
Changes since 1.1: +4 -3 lines
Refine

1 sysadm 1.1 # Use an official PHP-FPM image (adjust version as needed)
2     FROM php:8.4-fpm
3    
4 sysadm 1.2 # Install PHP extensions
5 sysadm 1.1 RUN apt-get update && apt-get install -y \
6 sysadm 1.2 libfreetype-dev libjpeg62-turbo-dev libpng-dev \
7 sysadm 1.1 && docker-php-ext-configure gd --with-freetype --with-jpeg \
8 sysadm 1.2 && docker-php-ext-install -j$(nproc) gd mysqli \
9     && rm -rf /var/lib/apt/lists/*
10 sysadm 1.1
11     # Copy the custom configuration file
12     COPY ./Dockerfile/php.ini /usr/local/etc/php/php.ini
13    
14     # Set ownership to www-data user and group
15     RUN mkdir -p /var/lib/php/sessions \
16     && chown -R www-data:www-data /var/lib/php/sessions
17    
18     # Install PEAR Mail package
19     RUN pear install -a Mail

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1