PHP Classes
elePHPant
Icontem

File: Dockerfile

Recommend this page to a friend!
  Classes of Rafael Becker  >  PHP Expressive  >  Dockerfile  >  Download  
File: Dockerfile
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: PHP Expressive
Base class for Object Relational Mapping
Author: By
Last change:
Date: 1 month ago
Size: 889 bytes
 

Contents

Class file image Download
FROM php:7.1-fpm-alpine

RUN apk add --no-cache \
    postgresql-dev

# Install PDO extensions
RUN docker-php-ext-install pdo pdo_pgsql

# Install XDebug
ARG INSTALL_XDEBUG
RUN if [ "${INSTALL_XDEBUG}" == true ]; then \
        apk update && apk add g++ autoconf make \
        && pecl install xdebug \
        && docker-php-ext-enable xdebug \
        && echo "xdebug.remote_enable=1" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini \
        && echo "xdebug.remote_handler=dbgp" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini \
        && echo "xdebug.remote_mode=req" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini \
        && echo "xdebug.remote_host=docker.local" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini \
        && echo "xdebug.remote_port=9000" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini \
        && apk del --purge g++ ;\
    fi