Last active
October 4, 2024 08:30
-
-
Save ben-albon/3c33628662dcd4120bf4 to your computer and use it in GitHub Desktop.
Docker PHP Image with PostgreSQL Driver
This file contains 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:5.6-apache | |
RUN apt-get update && apt-get install -y libpq-dev && docker-php-ext-install pdo pdo_pgsql | |
COPY src/ /var/www/html |
thank brow! 👍
Thanks 🚀
so good!
Thanks 👍
Dude, thanks very much!
Works also on PHP 8.0 👍
Works also on PHP 8.1, thanks
very much!!
php:8-apache
3.563 E: Unable to locate package docker-php-ext-install
3.563 E: Unable to locate package pgsql
3.563 E: Unable to locate package pdo
3.563 E: Unable to locate package pdo_pgsql
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This could work but you'd have to ensure that your apache handles requests to php though PHP-FPM