15 lines
544 B
Docker
15 lines
544 B
Docker
FROM php:7.1-apache
|
|
|
|
ENV APACHE_DOCUMENT_ROOT /var/www/html/public
|
|
|
|
RUN apt-get update \
|
|
&& apt-get install -y libpq-dev \
|
|
&& docker-php-ext-install pdo_pgsql \
|
|
&& curl -sS https://getcomposer.org/installer | php \
|
|
&& mv composer.phar /usr/local/bin/composer \
|
|
&& sed -ri -e 's!/var/www/html!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/sites-available/*.conf \
|
|
&& sed -ri -e 's!/var/www/!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/apache2.conf /etc/apache2/conf-available/*.conf \
|
|
&& a2enmod rewrite
|
|
|
|
WORKDIR /var/www/html
|