Created
August 5, 2025 15:34
-
-
Save tigusigalpa/8611f1499cd8ae271b744277554782f0 to your computer and use it in GitHub Desktop.
PHP 8.2 FPM Dockerfile with Postgres
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM php:8.2-fpm | |
RUN apt -y update && apt -y install \ | |
build-essential \ | |
mc \ | |
nano vim \ | |
zip unzip libzip-dev \ | |
openssl \ | |
wget \ | |
sendmail mailutils \ | |
software-properties-common \ | |
curl libcurl4-gnutls-dev \ | |
net-tools \ | |
build-essential \ | |
libfreetype6-dev \ | |
locales \ | |
jpegoptim optipng pngquant gifsicle libpng-dev libjpeg62-turbo-dev libjpeg-dev libgd-dev \ | |
git \ | |
libonig-dev \ | |
aspell \ | |
ghostscript \ | |
clamav \ | |
apache2-utils \ | |
libbz2-dev \ | |
libkrb5-dev \ | |
libmcrypt-dev \ | |
libreadline-dev \ | |
python3-dev python3-psycopg2 \ | |
libxslt1-dev \ | |
zlib1g-dev \ | |
libpq-dev \ | |
libfcgi-dev \ | |
libssl-dev \ | |
libc-client2007e libc-client2007e-dev | |
RUN apt -y clean && rm -rf /var/lib/apt/lists/* | |
RUN docker-php-ext-install \ | |
mbstring \ | |
zip \ | |
exif \ | |
pcntl \ | |
curl \ | |
ctype \ | |
intl \ | |
xml \ | |
dom \ | |
soap \ | |
bcmath \ | |
gd | |
RUN docker-php-ext-install pdo | |
RUN docker-php-ext-install pgsql pdo_pgsql | |
RUN docker-php-ext-enable pgsql pdo_pgsql | |
WORKDIR /var/www/html | |
CMD ["php-fpm"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment