Skip to content

Instantly share code, notes, and snippets.

@karllhughes
Created December 2, 2017 22:23
Show Gist options
  • Save karllhughes/c34bb869852d514ccd8373e28f5cdff5 to your computer and use it in GitHub Desktop.
Save karllhughes/c34bb869852d514ccd8373e28f5cdff5 to your computer and use it in GitHub Desktop.
php-apache-postgres
FROM php:apache
# Install extensions
RUN apt-get update && apt-get install -y libpq-dev
RUN docker-php-ext-install pgsql pdo_pgsql
# This allows Apache's mod-rewrite, whic you may or may not need
RUN a2enmod rewrite
# Copy the code and .htaccess file
ADD ./ /var/www/html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment