tissue/Dockerfile

22 lines
720 B
Docker
Raw Permalink Normal View History

2018-06-05 23:45:29 +09:00
FROM php:7.1-apache
ENV APACHE_DOCUMENT_ROOT /var/www/html/public
RUN apt-get update \
&& apt-get install -y git libpq-dev unzip \
2018-06-05 23:45:29 +09:00
&& docker-php-ext-install pdo_pgsql \
&& pecl install xdebug \
2018-06-05 23:45:29 +09:00
&& 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
COPY dist/bin /usr/local/bin/
COPY dist/php.d /usr/local/etc/php/php.d/
ENTRYPOINT ["tissue-entrypoint.sh"]
CMD ["apache2-foreground"]
2018-06-05 23:45:29 +09:00
WORKDIR /var/www/html