Dockerfile 1.06 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12
FROM richarvey/nginx-php-fpm

RUN apk update \
  && apk add \
    git \
    curl \
    unzip \
    vim \
    python \
    python-dev \
    py-pip

13 14 15 16
RUN pip install 'mkdocs==0.16.1'
RUN pip install 'mkdocs-material==1.4.1'
RUN pip install 'pygments==2.2.0'
RUN pip install 'pymdown-extensions==2.0'
17 18 19

RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer

20 21 22 23 24 25 26 27 28 29
# xdebug
RUN apk add --update autoconf alpine-sdk

RUN echo 'zend_extension="/usr/local/lib/php/extensions/no-debug-non-zts-20160303/xdebug.so"' > /usr/local/etc/php/conf.d/xdebug.ini
RUN echo xdebug.idekey = PHPSTORM >> /usr/local/etc/php/conf.d/xdebug.ini
RUN echo xdebug.remote_enable = 1 >> /usr/local/etc/php/conf.d/xdebug.ini
RUN echo xdebug.remote_autostart = 0 >> /usr/local/etc/php/conf.d/xdebug.ini
RUN echo xdebug.remote_connect_back = 0 >> /usr/local/etc/php/conf.d/xdebug.ini
RUN echo xdebug.remote_host=172.17.0.1 >> /usr/local/etc/php/conf.d/xdebug.ini

30 31
RUN rm /etc/nginx/sites-enabled/*
ADD app/config/civicrm-docs.conf /etc/nginx/sites-enabled
32 33

WORKDIR /var/www